Sha256: fecccb71097602d79ebf7838ef82115e3b22c47e0d63247f85733461e92c0bb7

Contents?: true

Size: 490 Bytes

Versions: 18

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true

count = ARGV[0] ? ARGV[0].to_i : 100

TEST_CMD = 'ruby test/run.rb'

def run_test(count)
  puts "#{count}: running tests..."
  # sleep 1
  system(TEST_CMD)
  puts

  return if $?.exitstatus == 0

  puts "Failure after #{count} tests"
  exit!
end

trap('INT') { exit! }
t0 = Time.now
count.times do |i|
  run_test(i + 1)
end
elapsed = Time.now - t0
puts format(
  "Successfully ran %d tests in %f seconds (%f per test)",
  count,
  elapsed,
  elapsed / count
)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
polyphony-0.66 test/stress.rb
polyphony-0.65 test/stress.rb
polyphony-0.64 test/stress.rb
polyphony-0.63 test/stress.rb
polyphony-0.62 test/stress.rb
polyphony-0.61 test/stress.rb
polyphony-0.60 test/stress.rb
polyphony-0.59.1 test/stress.rb
polyphony-0.59 test/stress.rb
polyphony-0.58 test/stress.rb
polyphony-0.57.0 test/stress.rb
polyphony-0.56.0 test/stress.rb
polyphony-0.55.0 test/stress.rb
polyphony-0.54.0 test/stress.rb
polyphony-0.53.2 test/stress.rb
polyphony-0.53.1 test/stress.rb
polyphony-0.53.0 test/stress.rb
polyphony-0.52.0 test/stress.rb