Module: Test::Unit::UI::TestRunnerUtilities
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
| Extended In: | |
| Defined in: | lib/test/unit/ui/testrunnerutilities.rb | 
Overview
Provides some utilities common to most, if not all, TestRunners.
Instance Method Summary
- 
    
      #run(suite, options = {})  
    
    Creates a new TestRunnerand runs the suite.
- 
    
      #start_command_line_test  
    
    Takes care of the ARGV parsing and suite determination necessary for running one of the TestRunners from the command line. 
Instance Method Details
#run(suite, options = {})
Creates a new TestRunner and runs the suite.
# File 'lib/test/unit/ui/testrunnerutilities.rb', line 23
def run(suite, ={}) return new(suite, ).start end
#start_command_line_test
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 30
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