Sha256: f3f55bc1ab6013935f490460658485801e03f4bae7cc2e4be5f010e088f1dfbc
Contents?: true
Size: 420 Bytes
Versions: 11
Compression:
Stored size: 420 Bytes
Contents
class Test::Unit::TestCase def run_with_test_timing(*args, &block) begin_time = Time.now run_without_test_timing(*args, &block) end_time = Time.now duration = end_time - begin_time threshold = 0.3 if duration > threshold puts "\nSLOW TEST: #{duration} - #{self.name}" end end alias_method_chain :run, :test_timing unless method_defined?(:run_without_test_timing) end
Version data entries
11 entries across 11 versions & 3 rubygems