Module | Test::Unit::UI::TestRunnerUtilities |
In: |
lib/test/unit/ui/testrunnerutilities.rb
|
Provides some utilities common to most, if not all, TestRunners.
Creates a new TestRunner and runs the suite.
# File lib/test/unit/ui/testrunnerutilities.rb, line 28 28: def run(suite, output_level=NORMAL) 29: return new(suite, output_level).start 30: end
Takes care of the ARGV parsing and suite determination necessary for running one of the TestRunners from the command line.
# File lib/test/unit/ui/testrunnerutilities.rb, line 35 35: def start_command_line_test 36: if ARGV.empty? 37: puts "You should supply the name of a test suite file to the runner" 38: exit 39: end 40: require ARGV[0].gsub(/.+::/, '') 41: new(eval(ARGV[0])).start 42: end