In Files

  • test/unit/ui/testrunnerutilities.rb


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
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"
  require ARGV[0].gsub(/.+::/, '')

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit