Class: CI::Reporter::TestUnitError

Inherits:
Object
  • Object
show all
Defined in:
lib/ci/reporter/test_unit.rb

Overview

Wrapper around a Test::Unit error to be used by the test suite to interpret results.

Instance Method Summary collapse

Constructor Details

#initialize(fault) ⇒ TestUnitError

Returns a new instance of TestUnitError.



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

def initialize(fault) @fault = fault end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


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

def error?() true end

#failure?Boolean

Returns:

  • (Boolean)


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

def failure?() false end

#locationObject



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

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

#messageObject



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

def message() @fault.exception.message end

#nameObject



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

def name() @fault.exception.class.name end