Sha256: abb80e1ef3f360a5037e43d76ccf76a71ed225498ecfca7fe85e29fb6a920626

Contents?: true

Size: 504 Bytes

Versions: 95

Compression:

Stored size: 504 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

`rake recompile`

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

95 entries across 95 versions & 1 rubygems

Version Path
polyphony-1.6 bin/stress.rb
polyphony-1.5 bin/stress.rb
polyphony-1.4 bin/stress.rb
polyphony-1.3 bin/stress.rb
polyphony-1.2.1 bin/stress.rb
polyphony-1.2 bin/stress.rb
polyphony-1.1.1 bin/stress.rb
polyphony-1.1 bin/stress.rb
polyphony-1.0.2 bin/stress.rb
polyphony-1.0.1 bin/stress.rb
polyphony-1.0 bin/stress.rb
polyphony-0.99.6 bin/stress.rb
polyphony-0.99.5 bin/stress.rb
polyphony-0.99.4 bin/stress.rb
polyphony-0.99.3 bin/stress.rb
polyphony-0.99.2 bin/stress.rb
polyphony-0.99.1 bin/stress.rb
polyphony-0.99 bin/stress.rb
polyphony-0.98 bin/stress.rb
polyphony-0.97 bin/stress.rb