Sha256: 16c9e49b9fbe291a54fbbc6304004db7db1360a5787eec79b01c5d963eb9ac7d
Contents?: true
Size: 1.78 KB
Versions: 3
Compression:
Stored size: 1.78 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.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.0" 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
minitest-bisect-1.5.0 | Rakefile |
minitest-bisect-1.4.1 | Rakefile |
minitest-bisect-1.4.0 | Rakefile |