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.



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

def initialize(fault) @fault = fault end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


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

def error?() true end

#failure?Boolean

Returns:

  • (Boolean)


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

def failure?() false end

#locationObject



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

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

#messageObject



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

def message() @fault.exception.message end

#nameObject



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

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