Sha256: dc3ea15cc6d72df6f5e8b8a2a68db8e595fb3fe81274d95ed4a421302de95e62

Contents?: true

Size: 465 Bytes

Versions: 22

Compression:

Stored size: 465 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..."
  system(TEST_CMD)
  return if $?.exitstatus == 0

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

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
polyphony-0.45.5 test/stress.rb
polyphony-0.45.4 test/stress.rb
polyphony-0.45.2 test/stress.rb
polyphony-0.45.1 test/stress.rb
polyphony-0.45.0 test/stress.rb
polyphony-0.44.0 test/stress.rb
polyphony-0.43.11 test/stress.rb
polyphony-0.43.10 test/stress.rb
polyphony-0.43.9 test/stress.rb
polyphony-0.43.8 test/stress.rb
polyphony-0.43.6 test/stress.rb
polyphony-0.43.5 test/stress.rb
polyphony-0.43.4 test/stress.rb
polyphony-0.43.3 test/stress.rb
polyphony-0.43.2 test/stress.rb
polyphony-0.43.1 test/stress.rb
polyphony-0.43 test/stress.rb
polyphony-0.42 test/stress.rb
polyphony-0.41 test/stress.rb
polyphony-0.40 test/stress.rb