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