Class: Test::Unit::UI::Console::TestRunner

Class | Test::Unit::UI::Console::TestRunner
In: | lib/spec/interop/test/unit/ui/console/testrunner.rb
Parent: | Object

### Methods

finished finished_with_rspec setup_mediator setup_mediator_with_rspec started started_with_rspec test_finished test_finished_with_rspec test_started test_started_with_rspec

### External Aliases

started | -> | started_without_rspec
test_started | -> | test_started_without_rspec
test_finished | -> | test_finished_without_rspec
finished | -> | finished_without_rspec
setup_mediator | -> | setup_mediator_without_rspec

### Public Instance methods

finished(elapsed_time)

Alias for finished_with_rspec

finished_with_rspec(elapsed_time)

[Source]

        # File lib/spec/interop/test/unit/ui/console/testrunner.rb, line 38
    38:           def finished_with_rspec(elapsed_time)
    39:             @ran_test ||= false
    40:             if @ran_test
    41:               finished_without_rspec(elapsed_time)
    42:             end
    43:           end

setup_mediator()

Alias for setup_mediator_with_rspec

setup_mediator_with_rspec()

[Source]

        # File lib/spec/interop/test/unit/ui/console/testrunner.rb, line 47
    47:           def setup_mediator_with_rspec
    48:             orig_io = @io
    49:             @io = StringIO.new
    50:             setup_mediator_without_rspec
    51:           ensure
    52:             @rspec_io = @io
    53:             @io = orig_io
    54:           end

started(result)

Alias for started_with_rspec

started_with_rspec(result)

[Source]

        # File lib/spec/interop/test/unit/ui/console/testrunner.rb, line 10
    10:           def started_with_rspec(result)
    11:             @result = result
    12:             @need_to_output_started = true
    13:           end

test_finished(name)

Alias for test_finished_with_rspec

test_finished_with_rspec(name)

[Source]

        # File lib/spec/interop/test/unit/ui/console/testrunner.rb, line 31
    31:           def test_finished_with_rspec(name)
    32:             test_finished_without_rspec(name)
    33:             @ran_test = true
    34:           end

test_started(name)

Alias for test_started_with_rspec

test_started_with_rspec(name)

[Source]

        # File lib/spec/interop/test/unit/ui/console/testrunner.rb, line 17
    17:           def test_started_with_rspec(name)
    18:             if @need_to_output_started
    19:               if @rspec_io
    20:                 @rspec_io.rewind
    21:                 output(@rspec_io.read)
    22:               end
    23:               output("Started")
    24:               @need_to_output_started = false
    25:             end
    26:             test_started_without_rspec(name)
    27:           end

[Validate]