spec/integration_spec.rb in parallel_tests-0.11.5 vs spec/integration_spec.rb in parallel_tests-0.11.6
- old
+ new
@@ -137,10 +137,11 @@
write "spec/x1_spec.rb", "puts '111'"
run_tests "spec", :type => 'rspec', :add => '--group-by found'
end
it "runs faster with more processes" do
+ pending if RUBY_ENGINE == "jruby"
2.times{|i|
write "spec/xxx#{i}_spec.rb", 'describe("it"){it("should"){sleep 5}}; $stderr.puts ENV["TEST_ENV_NUMBER"]'
}
t = Time.now
run_tests("spec", :processes => 2, :type => 'rspec')
@@ -195,9 +196,10 @@
result.should_not include('YYY')
result.should include('ZZZ')
end
it "can wait_for_other_processes_to_finish" do
+ pending if RUBY_ENGINE == "jruby"
write "test/a_test.rb", "require 'parallel_tests'; sleep 0.5 ; ParallelTests.wait_for_other_processes_to_finish; puts 'a'"
write "test/b_test.rb", "sleep 1; puts 'b'"
write "test/c_test.rb", "sleep 1.5; puts 'c'"
write "test/d_test.rb", "sleep 2; puts 'd'"
run_tests("test", :processes => 4).should include("b\nc\nd\na\n")