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
- #info(test_run_id) ⇒ Object
- #info_by_pipeline(pipeline_id, test_run_number) ⇒ Object
-
#initialize(client) ⇒ TestRun
constructor
A new instance of TestRun.
- #list(pipeline_id) ⇒ Object
- #update(test_run_number, body = {}) ⇒ Object
Constructor Details
#initialize(client) ⇒ TestRun
Returns a new instance of TestRun.
5414 5415 5416 |
# File 'lib/platform-api/client.rb', line 5414 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
5426 5427 5428 |
# File 'lib/platform-api/client.rb', line 5426 def create(body = {}) @client.test_run.create(body) end |
#info(test_run_id) ⇒ Object
5438 5439 5440 |
# File 'lib/platform-api/client.rb', line 5438 def info(test_run_id) @client.test_run.info(test_run_id) end |
#info_by_pipeline(pipeline_id, test_run_number) ⇒ Object
5464 5465 5466 |
# File 'lib/platform-api/client.rb', line 5464 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
5450 5451 5452 |
# File 'lib/platform-api/client.rb', line 5450 def list(pipeline_id) @client.test_run.list(pipeline_id) end |
#update(test_run_number, body = {}) ⇒ Object
5478 5479 5480 |
# File 'lib/platform-api/client.rb', line 5478 def update(test_run_number, body = {}) @client.test_run.update(test_run_number, body) end |