class Juniter::TestCase
Public Instance Methods
all_results()
click to toggle source
# File lib/juniter/test_case.rb, line 21 def all_results [ skip_result, *error_result, *fail_result ].compact end
result()
click to toggle source
Convenience method. Assumes that all results are of the same type, which should mean that querying if the “result” is pass/fail/skip/error should work without issue.
# File lib/juniter/test_case.rb, line 28 def result all_results.none? ? TestResult.new(:pass) : all_results.first end