Class CI::Reporter::Failure
In: lib/ci/reporter/test_unit.rb
Parent: Object

Factory for constructing either a CI::Reporter::TestUnitFailure or CI::Reporter::TestUnitError depending on the result of the test.

Methods

new  

Public Class methods

[Source]

    # File lib/ci/reporter/test_unit.rb, line 14
14:       def self.new(fault)
15:         return TestUnitFailure.new(fault) if fault.kind_of?(Test::Unit::Failure)
16:         return TestUnitSkipped.new(fault) if Test::Unit.constants.include?("Omission") && (fault.kind_of?(Test::Unit::Omission) || fault.kind_of?(Test::Unit::Pending))
17:         TestUnitError.new(fault)
18:       end

[Validate]