class Test::Unit::UI::TestRunner

Attributes

listeners[R]

Public Class Methods

new(suite, options={}) click to toggle source
# File test-unit-3.3.7/lib/test/unit/ui/testrunner.rb, line 10
def initialize(suite, options={})
  if suite.respond_to?(:suite)
    @suite = suite.suite
  else
    @suite = suite
  end
  @options = options
  @listeners = @options[:listeners] || []
end

Public Instance Methods

start() click to toggle source

Begins the test run.

# File test-unit-3.3.7/lib/test/unit/ui/testrunner.rb, line 21
def start
  setup_mediator
  attach_to_mediator
  attach_listeners
  start_mediator
end