class Grntest::WorkerResult
Attributes
failed_tests[R]
n_leaked_tests[R]
n_not_checked_tests[R]
n_omitted_tests[R]
n_passed_tests[R]
n_tests[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
Grntest::BaseResult::new
# File lib/grntest/worker.rb, line 24 def initialize super @n_tests = 0 @n_passed_tests = 0 @n_leaked_tests = 0 @n_omitted_tests = 0 @n_not_checked_tests = 0 @failed_tests = [] end
Public Instance Methods
cancel_test_failure(name)
click to toggle source
# File lib/grntest/worker.rb, line 50 def cancel_test_failure(name) @failed_tests.delete(name) end
n_failed_tests()
click to toggle source
# File lib/grntest/worker.rb, line 34 def n_failed_tests @failed_tests.size end
on_test_failure(name)
click to toggle source
# File lib/grntest/worker.rb, line 46 def on_test_failure(name) @failed_tests << name end
on_test_finish()
click to toggle source
# File lib/grntest/worker.rb, line 38 def on_test_finish @n_tests += 1 end
on_test_leak(name)
click to toggle source
# File lib/grntest/worker.rb, line 54 def on_test_leak(name) @n_leaked_tests += 1 end
on_test_no_check()
click to toggle source
# File lib/grntest/worker.rb, line 62 def on_test_no_check @n_not_checked_tests += 1 end
on_test_omission()
click to toggle source
# File lib/grntest/worker.rb, line 58 def on_test_omission @n_omitted_tests += 1 end
on_test_success()
click to toggle source
# File lib/grntest/worker.rb, line 42 def on_test_success @n_passed_tests += 1 end