Sha256: cf900ffc3078f2611962c646e26cb4d607391dd372211b0d9b8fc3edb7cce9f0
Contents?: true
Size: 1.61 KB
Versions: 2
Compression:
Stored size: 1.61 KB
Contents
# -*- ruby -*- require "rubygems" require "hoe" Hoe.plugin :isolate Hoe.plugin :seattlerb Hoe.plugin :rdoc Hoe.spec "minitest-bisect" do developer "Ryan Davis", "ryand-ruby@zenspider.com" license "MIT" end require "rake/testtask" Rake::TestTask.new(:badtest) do |t| t.test_files = Dir["badtest/test*.rb"] end def banner text puts puts "#" * 70 puts "# #{text} ::" puts "#" * 70 puts unless ENV["SLEEP"] == "0" then print "Press return to continue " $stdin.gets puts end end def run cmd sh cmd do end end def req glob Dir["#{glob}.rb"].map { |s| "require #{s.inspect}" }.join ";" end task :repro do unless ENV.has_key? "SLEEP" then warn "NOTE: Defaulting to sleeping 0.01 seconds per test." warn "NOTE: Use SLEEP=0 to disable or any other value to simulate your tests." end ruby = "ruby -I.:lib" banner "Original run that causes the test order dependency bug" run "#{ruby} -e '#{req "example/test*"}' -- --seed 3911" banner "Reduce the problem down to the minimal reproduction" run "#{ruby} bin/minitest_bisect -Ilib --seed 3911 example/test*.rb" end task :many do unless ENV.has_key? "SLEEP" then warn "NOTE: Defaulting to sleeping 0.01 seconds per test." warn "NOTE: Use SLEEP=0 to disable or any other value to simulate your tests." end ruby = "ruby -I.:lib" banner "Original run that causes the test order dependency bug" run "#{ruby} -e '#{req "example-many/test*"}' -- --seed 27083" banner "Reduce the problem down to the minimal reproduction" run "#{ruby} bin/minitest_bisect -Ilib --seed 27083 example-many/test*.rb" end # vim: syntax=ruby
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
minitest-bisect-1.1.0 | Rakefile |
minitest-bisect-1.0.0 | Rakefile |