lib/parallel_tests/tasks.rb in parallel_tests-0.7.0 vs lib/parallel_tests/tasks.rb in parallel_tests-0.7.1
- old
+ new
@@ -39,9 +39,14 @@
desc "load dumped schema for test databases via db:schema:load --> parallel:load_schema[num_cpus]"
task :load_schema, :count do |t,args|
run_in_parallel('rake db:test:load', args)
end
+ desc "load the seed data from db/seeds.rb via db:seed --> parallel::seed[num_cpus]"
+ task :seed, :count do |t,args|
+ run_in_parallel('rake db:seed RAILS_ENV=test', args)
+ end
+
['test', 'spec', 'features'].each do |type|
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"