Sha256: d2aa6e7b4abc04ace4c3df902bf5cf5dd00b720932f51323e2e1beed3d0e1e9c

Contents?: true

Size: 482 Bytes

Versions: 15

Compression:

Stored size: 482 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)
  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

15 entries across 15 versions & 1 rubygems

Version Path
polyphony-0.51.0 test/stress.rb
polyphony-0.50.1 test/stress.rb
polyphony-0.50.0 test/stress.rb
polyphony-0.49.2 test/stress.rb
polyphony-0.49.1 test/stress.rb
polyphony-0.49.0 test/stress.rb
polyphony-0.48.0 test/stress.rb
polyphony-0.47.5.1 test/stress.rb
polyphony-0.47.5 test/stress.rb
polyphony-0.47.4 test/stress.rb
polyphony-0.47.3 test/stress.rb
polyphony-0.47.2 test/stress.rb
polyphony-0.47.1 test/stress.rb
polyphony-0.47.0 test/stress.rb
polyphony-0.46.1 test/stress.rb