Method: Test::Unit::AutoRunner#initialize

Defined in:
lib/test/unit/autorunner.rb

#initialize(standalone) {|_self| ... } ⇒ AutoRunner

Returns a new instance of AutoRunner.

Yields:

  • (_self)

Yield Parameters:



76
77
78
79
80
81
82
83
84
85
86
# File 'lib/test/unit/autorunner.rb', line 76

def initialize(standalone)
  Unit.run = true
  @standalone = standalone
  @runner = RUNNERS[:console]
  @collector = COLLECTORS[(standalone ? :dir : :objectspace)]
  @filters = []
  @to_run = []
  @output_level = UI::NORMAL
  @workdir = nil
  yield(self) if(block_given?)
end