Module: TeamCity::Client::Tests
- Included in:
- TeamCity::Client
- Defined in:
- lib/teamcity/client/tests.rb
Overview
Defines methods related to tests
Instance Method Summary collapse
-
#tests(options = {}) ⇒ Array<Hashie::Mash>
List of tests.
Instance Method Details
#tests(options = {}) ⇒ Array<Hashie::Mash>
List of tests
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/teamcity/client/tests.rb', line 11 def tests(={}) url_params = .empty? ? '' : "?locator=#{locator()}" tests = [] begin response = get("testOccurrences#{url_params}") tests = response.testOccurrence rescue tests = [] end tests end |