3
# Author:: Nathaniel Talbott.
4
# Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved.
5
# License:: Ruby license.
16
# Provides some utilities common to most, if not all,
21
# Perhaps there ought to be a TestRunner superclass? There
22
# seems to be a decent amount of shared code between test
25
module TestRunnerUtilities
27
# Creates a new TestRunner and runs the suite.
28
def run(suite, output_level=NORMAL)
29
return new(suite, output_level).start
32
# Takes care of the ARGV parsing and suite
33
# determination necessary for running one of the
34
# TestRunners from the command line.
35
def start_command_line_test
37
puts "You should supply the name of a test suite file to the runner"
40
require ARGV[0].gsub(/.+::/, '')
41
new(eval(ARGV[0])).start