Sha256: 664132bc26997074c68d37533fbedc2315919de00fece3ace2e3830a3d7aeba2
Contents?: true
Size: 1.83 KB
Versions: 2
Compression:
Stored size: 1.83 KB
Contents
# -*- ruby -*- require "rubygems" require "hoe" Hoe.plugin :isolate Hoe.plugin :seattlerb Hoe.plugin :rdoc Hoe.add_include_dirs "../../minitest-server/dev/lib" Hoe.add_include_dirs "../../path_expander/dev/lib" Hoe.spec "minitest-bisect" do developer "Ryan Davis", "ryand-ruby@zenspider.com" license "MIT" dependency "rake", "> 0", :development dependency "minitest-server", "~> 1.0" dependency "path_expander", "~> 1.1" 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 return if ENV["SLEEP"] == "0" print "Press return to continue " $stdin.gets puts end def run cmd sh cmd do end end def req glob Dir["#{glob}.rb"].map { |s| "require #{s.inspect}" }.join ";" end task :repro => :isolate do unless ENV.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 => :isolate do unless ENV.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.6.0 | Rakefile |
minitest-bisect-1.5.1 | Rakefile |