Class: Test::Unit::TestSuite

Inherits:
Object
  • Object
show all
Defined in:
lib/parallel_tests/test/runtime_logger.rb

Instance Method Summary collapse

Instance Method Details

#run(result, &block) ⇒ Object



115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/parallel_tests/test/runtime_logger.rb', line 115

def run(result, &block)
  test = tests.first

  if test.is_a? ::Test::Unit::TestSuite # all tests ?
    run_without_timing(result, &block)
    ParallelTests::Test::RuntimeLogger.unique_log
  else
    ParallelTests::Test::RuntimeLogger.log_test_run(test.class) do
      run_without_timing(result, &block)
    end
  end
end

#run_without_timingObject



113
# File 'lib/parallel_tests/test/runtime_logger.rb', line 113

alias_method :run_without_timing, :run