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

  1. lib/spec/interop/test/unit/ui/console/testrunner.rb
Parent: Object

Public instance methods

finished (elapsed_time)
finished_with_rspec (elapsed_time)
[show source]
# File lib/spec/interop/test/unit/ui/console/testrunner.rb, line 38
          def finished_with_rspec(elapsed_time)
            @ran_test ||= false
            if @ran_test
              finished_without_rspec(elapsed_time)
            end
          end
finished_without_rspec (elapsed_time)

Alias for finished

setup_mediator ()
setup_mediator_with_rspec ()
[show source]
# File lib/spec/interop/test/unit/ui/console/testrunner.rb, line 47
          def setup_mediator_with_rspec
            orig_io = @io
            @io = StringIO.new
            setup_mediator_without_rspec
          ensure
            @rspec_io = @io
            @io = orig_io
          end
setup_mediator_without_rspec ()

Alias for setup_mediator

started (result)

Alias for started_with_rspec

started_with_rspec (result)
[show source]
# File lib/spec/interop/test/unit/ui/console/testrunner.rb, line 10
          def started_with_rspec(result)
            @result = result
            @need_to_output_started = true
          end
started_without_rspec (result)

Alias for started

test_finished (name)
test_finished_with_rspec (name)
[show source]
# File lib/spec/interop/test/unit/ui/console/testrunner.rb, line 31
          def test_finished_with_rspec(name)
            test_finished_without_rspec(name)
            @ran_test = true
          end
test_finished_without_rspec (name)

Alias for test_finished

test_started (name)
test_started_with_rspec (name)
[show source]
# File lib/spec/interop/test/unit/ui/console/testrunner.rb, line 17
          def test_started_with_rspec(name)
            if @need_to_output_started
              if @rspec_io
                @rspec_io.rewind
                output(@rspec_io.read)
              end
              output("Started")
              @need_to_output_started = false
            end
            test_started_without_rspec(name)
          end
test_started_without_rspec (name)

Alias for test_started