Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

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
            

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 Documenting-ruby.org.

blog comments powered by Disqus