lib/parallel_tests/tasks.rb in parallel_tests-0.4.9 vs lib/parallel_tests/tasks.rb in parallel_tests-0.4.10
- old
+ new
@@ -9,9 +9,14 @@
desc "create test databases via db:create --> parallel:create[num_cpus]"
task :create, :count do |t,args|
run_in_parallel('rake db:create RAILS_ENV=test', args)
end
+ desc "drop test databases via db:drop --> parallel:drop[num_cpus]"
+ task :drop, :count do |t,args|
+ run_in_parallel('rake db:drop RAILS_ENV=test', args)
+ end
+
desc "update test databases by dumping and loading --> parallel:prepare[num_cpus]"
task(:prepare, [:count] => 'db:abort_if_pending_migrations') do |t,args|
if ActiveRecord::Base.schema_format == :ruby
# dump then load in parallel
Rake::Task['db:schema:dump'].invoke