Class: Test::Unit::UI::Yaml::TestRunner

Inherits:
Object
  • Object
show all
Extended by:
TestRunnerUtilities
Defined in:
lib/test/unit/u_i/yaml/test_runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(suite, output_level = NORMAL, io = STDOUT) ⇒ TestRunner

Returns a new instance of TestRunner.



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/test/unit/u_i/yaml/test_runner.rb', line 27

def initialize(suite, output_level=NORMAL, io=STDOUT)
  if (suite.respond_to?(:suite))
    @suite = suite.suite
  else
    @suite = suite
  end
  @output_level = output_level
  @io = io
  @failures = []
  @errors = []
end

Instance Method Details

#startObject



41
42
43
44
45
# File 'lib/test/unit/u_i/yaml/test_runner.rb', line 41

def start
  setup_mediator
  attach_to_mediator
  return start_mediator
end