In Files

  • runit/cui/testrunner.rb

Parent

RUNIT::CUI::TestRunner

Public Class Methods

new() click to toggle source
 
               # File runit/cui/testrunner.rb, line 17
def initialize
  super nil
end
            
quiet_mode=(boolean) click to toggle source
 
               # File runit/cui/testrunner.rb, line 46
def self.quiet_mode=(boolean)
  @@quiet_mode = boolean
end
            
run(suite) click to toggle source
 
               # File runit/cui/testrunner.rb, line 13
def self.run(suite)
  self.new().run(suite)
end
            

Public Instance Methods

create_mediator(suite) click to toggle source
 
               # File runit/cui/testrunner.rb, line 30
def create_mediator(suite)
  mediator = Test::Unit::UI::TestRunnerMediator.new(suite)
  class << mediator
    attr_writer :result_delegate
    def create_result
      return @result_delegate.create_result
    end
  end
  mediator.result_delegate = self
  return mediator
end
            
create_result() click to toggle source
 
               # File runit/cui/testrunner.rb, line 42
def create_result
  return RUNIT::TestResult.new
end
            
run(suite, quiet_mode=@@quiet_mode) click to toggle source
 
               # File runit/cui/testrunner.rb, line 21
def run(suite, quiet_mode=@@quiet_mode)
  @suite = suite
  def @suite.suite
    self
  end
  @output_level = (quiet_mode ? Test::Unit::UI::PROGRESS_ONLY : Test::Unit::UI::VERBOSE)
  start
end