class Test::Unit::AutoRunner
Attributes
options[RW]
to_run[RW]
Public Class Methods
new(force_standalone = false, default_dir = nil, argv = ARGV) { |self| ... }
click to toggle source
# File lib/test/unit.rb, line 808 def initialize(force_standalone = false, default_dir = nil, argv = ARGV) @force_standalone = force_standalone @runner = Runner.new do |files, options| options[:base_directory] ||= default_dir files << default_dir if files.empty? and default_dir @to_run = files yield self if block_given? files end Runner.runner = @runner @options = @runner.option_parser if @force_standalone @options.banner.sub!(/\[options\]/, '\& tests...') end @argv = argv end
run(*args)
click to toggle source
# File lib/test/unit.rb, line 837 def self.run(*args) new(*args).run end
Public Instance Methods
process_args(*args)
click to toggle source
# File lib/test/unit.rb, line 825 def process_args(*args) @runner.process_args(*args) !@to_run.empty? end
run()
click to toggle source
# File lib/test/unit.rb, line 830 def run if @force_standalone and not process_args(@argv) abort @options.banner end @runner.run(@argv) || true end