In Files

  • test/unit/parallel.rb
  • test/unit/testcase.rb

Test::Unit::TestCase

Public Class Methods

method_added(name) click to toggle source
 
               # File test/unit/testcase.rb, line 24
def self.method_added(name)
  return unless name.to_s.start_with?("test_")
  @test_methods ||= {}
  if @test_methods[name]
    warn "test/unit warning: method #{ self }##{ name } is redefined"
  end
  @test_methods[name] = true
end
            
test_order() click to toggle source
 
               # File test/unit/testcase.rb, line 20
def self.test_order
  :sorted
end
            

Public Instance Methods

on_parallel_worker?() click to toggle source
 
               # File test/unit/parallel.rb, line 175
def on_parallel_worker?
  true
end
            
run(runner) click to toggle source
 
               # File test/unit/testcase.rb, line 15
def run runner
  @options = runner.options
  super runner
end