Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • test/unit/ui/testrunnerutilities.rb

Test::Unit::UI::TestRunnerUtilities

Provides some utilities common to most, if not all, TestRunners.

Public Instance Methods

run(suite, output_level=NORMAL) click to toggle source

Creates a new TestRunner and runs the suite.

 
               # File test/unit/ui/testrunnerutilities.rb, line 28
def run(suite, output_level=NORMAL)
  return new(suite, output_level).start
end
            
start_command_line_test() click to toggle source

Takes care of the ARGV parsing and suite determination necessary for running one of the TestRunners from the command line.

 
               # File test/unit/ui/testrunnerutilities.rb, line 35
def start_command_line_test
  if ARGV.empty?
    puts "You should supply the name of a test suite file to the runner"
    exit
  end
  require ARGV[0].gsub(/.+::/, '')
  new(eval(ARGV[0])).start
end