Class: RUNIT::TestResult
- Inherits:
-
Test::Unit::TestResult
- Object
- Test::Unit::TestResult
- RUNIT::TestResult
- Defined in:
- lib/runit/testresult.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#failures ⇒ Object
readonly
Returns the value of attribute failures.
Instance Method Summary collapse
- #add_error(error) ⇒ Object
- #add_failure(failure) ⇒ Object
- #error_size ⇒ Object
- #failure_size ⇒ Object
- #run_asserts ⇒ Object
- #run_tests ⇒ Object
- #succeed? ⇒ Boolean
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors
9 10 11 |
# File 'lib/runit/testresult.rb', line 9 def errors @errors end |
#failures ⇒ Object (readonly)
Returns the value of attribute failures
9 10 11 |
# File 'lib/runit/testresult.rb', line 9 def failures @failures end |
Instance Method Details
#add_error(error) ⇒ Object
34 35 36 37 38 39 40 41 42 |
# File 'lib/runit/testresult.rb', line 34 def add_error(error) def error.at return location end def error.err return exception end super(error) end |
#add_failure(failure) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/runit/testresult.rb', line 25 def add_failure(failure) def failure.at return location end def failure.err return end super(failure) end |
#error_size ⇒ Object
19 20 21 |
# File 'lib/runit/testresult.rb', line 19 def error_size return error_count end |
#failure_size ⇒ Object
13 14 15 |
# File 'lib/runit/testresult.rb', line 13 def failure_size return failure_count end |
#run_asserts ⇒ Object
16 17 18 |
# File 'lib/runit/testresult.rb', line 16 def run_asserts return assertion_count end |
#run_tests ⇒ Object
22 23 24 |
# File 'lib/runit/testresult.rb', line 22 def run_tests return run_count end |
#succeed? ⇒ Boolean
10 11 12 |
# File 'lib/runit/testresult.rb', line 10 def succeed? return passed? end |