lib/parallel_tests/tasks.rb in parallel_tests-0.9.3 vs lib/parallel_tests/tasks.rb in parallel_tests-0.9.4

- old
+ new

@@ -104,9 +104,14 @@ desc "load the seed data from db/seeds.rb via db:seed --> parallel:seed[num_cpus]" task :seed, :count do |t,args| ParallelTests::Tasks.run_in_parallel("rake db:seed RAILS_ENV=#{ParallelTests::Tasks.rails_env}", args) end + desc "launch given rake command in parallel" + task :rake, :command do |t, args| + ParallelTests::Tasks.run_in_parallel("RAILS_ENV=#{ParallelTests::Tasks.rails_env} rake #{args.command}") + end + ['test', 'spec', 'features'].each do |type| desc "run #{type} in parallel with parallel:#{type}[num_cpus]" task type, [:count, :pattern, :options] do |t, args| ParallelTests::Tasks.check_for_pending_migrations