Class: PlatformAPI::TestRun
- Inherits:
-
Object
- Object
- PlatformAPI::TestRun
- Defined in:
- lib/platform-api/client.rb
Overview
An execution or trial of one or more tests
Instance Method Summary collapse
-
#create(body = {}) ⇒ Object
Create a new test-run.
-
#info(test_run_id) ⇒ Object
Info for existing test-run.
-
#info_by_pipeline(pipeline_id, test_run_number) ⇒ Object
Info for existing test-run by Pipeline.
-
#initialize(client) ⇒ TestRun
constructor
A new instance of TestRun.
-
#list(pipeline_id) ⇒ Object
List existing test-runs for a pipeline.
-
#update(test_run_number, body = {}) ⇒ Object
Update a test-run's status.
Constructor Details
#initialize(client) ⇒ TestRun
Returns a new instance of TestRun.
3611 3612 3613 |
# File 'lib/platform-api/client.rb', line 3611 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new test-run.
3618 3619 3620 |
# File 'lib/platform-api/client.rb', line 3618 def create(body = {}) @client.test_run.create(body) end |
#info(test_run_id) ⇒ Object
Info for existing test-run.
3625 3626 3627 |
# File 'lib/platform-api/client.rb', line 3625 def info(test_run_id) @client.test_run.info(test_run_id) end |
#info_by_pipeline(pipeline_id, test_run_number) ⇒ Object
Info for existing test-run by Pipeline
3640 3641 3642 |
# File 'lib/platform-api/client.rb', line 3640 def info_by_pipeline(pipeline_id, test_run_number) @client.test_run.info_by_pipeline(pipeline_id, test_run_number) end |
#list(pipeline_id) ⇒ Object
List existing test-runs for a pipeline.
3632 3633 3634 |
# File 'lib/platform-api/client.rb', line 3632 def list(pipeline_id) @client.test_run.list(pipeline_id) end |
#update(test_run_number, body = {}) ⇒ Object
Update a test-run's status.
3648 3649 3650 |
# File 'lib/platform-api/client.rb', line 3648 def update(test_run_number, body = {}) @client.test_run.update(test_run_number, body) end |