spec/integration_spec.rb in parallelized_specs-0.0.1 vs spec/integration_spec.rb in parallelized_specs-0.0.2

- old
+ new

@@ -8,11 +8,11 @@ after do `rm -rf #{folder}` end def folder - "/tmp/parallel_tests_tests" + "/tmp/parallelized_tests_tests" end def write(file, content) path = "#{folder}/#{file}" `mkdir -p #{File.dirname(path)}` unless File.exist?(File.dirname(path)) @@ -23,11 +23,11 @@ def bin_folder "#{File.expand_path(File.dirname(__FILE__))}/../bin" end def executable - "#{bin_folder}/parallel_test" + "#{bin_folder}/parallelized_test" end def run_tests(options={}) `cd #{folder} && #{executable} --chunk-timeout 999 -t #{options[:type] || 'spec'} -n #{options[:processes]||2} #{options[:add]} 2>&1` end @@ -85,11 +85,10 @@ system("#{executable} -e 'test -e xxxx' -n 4").should == false end it "can run through parallel_spec / parallel_cucumber" do version = `#{executable} -v` - `#{bin_folder}/parallel_spec -v`.should == version - `#{bin_folder}/parallel_cucumber -v`.should == version + `#{bin_folder}/parallelized_spec -v`.should == version end it "runs faster with more processes" do 2.times{|i| write "spec/xxx#{i}_spec.rb", 'describe("it"){it("should"){sleep 5}}; $stderr.puts ENV["TEST_ENV_NUMBER"]'