Class: CI::Reporter::TestUnitError
- Inherits:
-
Object
- Object
- CI::Reporter::TestUnitError
- Defined in:
- lib/ci/reporter/test_unit.rb
Overview
Wrapper around a Test::Unit
error to be used by the test suite to interpret results.
Instance Method Summary collapse
- #error? ⇒ Boolean
- #failure? ⇒ Boolean
-
#initialize(fault) ⇒ TestUnitError
constructor
A new instance of TestUnitError.
- #location ⇒ Object
- #message ⇒ Object
- #name ⇒ Object
Constructor Details
#initialize(fault) ⇒ TestUnitError
Returns a new instance of TestUnitError.
23 |
# File 'lib/ci/reporter/test_unit.rb', line 23 def initialize(fault) @fault = fault end |
Instance Method Details
#error? ⇒ Boolean
25 |
# File 'lib/ci/reporter/test_unit.rb', line 25 def error?() true end |
#failure? ⇒ Boolean
24 |
# File 'lib/ci/reporter/test_unit.rb', line 24 def failure?() false end |
#location ⇒ Object
28 |
# File 'lib/ci/reporter/test_unit.rb', line 28 def location() @fault.exception.backtrace.join("\n") end |
#message ⇒ Object
27 |
# File 'lib/ci/reporter/test_unit.rb', line 27 def () @fault.exception. end |
#name ⇒ Object
26 |
# File 'lib/ci/reporter/test_unit.rb', line 26 def name() @fault.exception.class.name end |