Parent

Methods

CI::Reporter::Failure

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

Public Class Methods

new(fault) click to toggle source
# File lib/ci/reporter/test_unit.rb, line 14
def self.new(fault)
  return TestUnitFailure.new(fault) if fault.kind_of?(Test::Unit::Failure)
  return TestUnitSkipped.new(fault) if Test::Unit.constants.include?("Omission") && (fault.kind_of?(Test::Unit::Omission) || fault.kind_of?(Test::Unit::Pending))
  return TestUnitNotification.new(fault) if Test::Unit.constants.include?("Notification") && fault.kind_of?(Test::Unit::Notification)
  TestUnitError.new(fault)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.