Class CI::Reporter::TestUnitError
In: lib/ci/reporter/test_unit.rb
Parent: Object

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

Methods

error?   failure?   location   message   name   new  

Public Class methods

[Source]

    # File lib/ci/reporter/test_unit.rb, line 23
23:       def initialize(fault) @fault = fault end

Public Instance methods

[Source]

    # File lib/ci/reporter/test_unit.rb, line 25
25:       def error?() true end

[Source]

    # File lib/ci/reporter/test_unit.rb, line 24
24:       def failure?() false end

[Source]

    # File lib/ci/reporter/test_unit.rb, line 28
28:       def location() @fault.exception.backtrace.join("\n") end

[Source]

    # File lib/ci/reporter/test_unit.rb, line 27
27:       def message() @fault.exception.message end

[Source]

    # File lib/ci/reporter/test_unit.rb, line 26
26:       def name() @fault.exception.class.name end

[Validate]