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.



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

def initialize(fault) @fault = fault end

Instance Method Details

#error? ⇒ Boolean

Returns:

  • (Boolean)


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

def error?() false end

#failure? ⇒ Boolean

Returns:

  • (Boolean)


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

def failure?() true end

#location ⇒ Object



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

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

#message ⇒ Object



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

def message() @fault.message end

#name ⇒ Object



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

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