class Grntest::WorkerResult
Attributes
Public Class Methods
Source
# 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
Calls superclass method
Grntest::BaseResult::new
Public Instance Methods
Source
# File lib/grntest/worker.rb, line 50 def cancel_test_failure(name) @failed_tests.delete(name) end
Source
# File lib/grntest/worker.rb, line 34 def n_failed_tests @failed_tests.size end
Source
# File lib/grntest/worker.rb, line 46 def on_test_failure(name) @failed_tests << name end
Source
# File lib/grntest/worker.rb, line 54 def on_test_leak(name) @n_leaked_tests += 1 end
Source
# File lib/grntest/worker.rb, line 62 def on_test_no_check @n_not_checked_tests += 1 end
Source
# File lib/grntest/worker.rb, line 58 def on_test_omission @n_omitted_tests += 1 end
Source
# File lib/grntest/worker.rb, line 42 def on_test_success @n_passed_tests += 1 end