Class: CI::Reporter::TestUnitFailure

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(fault) ⇒ TestUnitFailure

Returns a new instance of TestUnitFailure.



33
34
35
# File 'lib/ci/reporter/test_unit.rb', line 33

def initialize(fault)
  @fault = fault
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


37
# File 'lib/ci/reporter/test_unit.rb', line 37

def error?() false end

#failure?Boolean

Returns:

  • (Boolean)


36
# File 'lib/ci/reporter/test_unit.rb', line 36

def failure?() true end

#locationObject



40
# File 'lib/ci/reporter/test_unit.rb', line 40

def location() @fault.location.join("\n") end

#messageObject



39
# File 'lib/ci/reporter/test_unit.rb', line 39

def message() @fault.message end

#nameObject



38
# File 'lib/ci/reporter/test_unit.rb', line 38

def name() Test::Unit::AssertionFailedError.name end