lib/parallel_tests/tasks.rb in parallel_tests-0.7.0.alpha vs lib/parallel_tests/tasks.rb in parallel_tests-0.7.0.alpha2

- old
+ new

@@ -45,11 +45,12 @@ desc "run #{type} in parallel with parallel:#{type}[num_cpus]" task type, [:count, :pattern, :options] => 'db:abort_if_pending_migrations' do |t,args| $LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..')) require "parallel_tests" count, pattern, options = ParallelTests.parse_rake_args(args) + test_type = (type == 'features' ? 'cucumber' : type) executable = File.join(File.dirname(__FILE__), '..', '..', 'bin', 'parallel_test') - command = "#{executable} --type #{type} -n #{count} -p '#{pattern}' -r '#{Rails.root}' -o '#{options}'" + command = "#{executable} '#{Rails.root}/#{type}' --type #{test_type} -n #{count} -p '#{pattern}' -o '#{options}'" abort unless system(command) # allow to chain tasks e.g. rake parallel:spec parallel:features end end end