require 'rubygems' gem 'rspec', '=1.1.8' require 'spec/rake/spectask' $LOAD_PATH << File.dirname(__FILE__) + "/../../../lib" require 'deep_test/rake_tasks' DeepTest::TestTask.new(:deep_test) do |t| t.number_of_workers = 1 t.pattern = "test/unit/**/*_test.rb" t.worker_listener = "ForeignHostWorkerSimulationListener,DeepTest::Database::MysqlSetupListener" end Rake::Task[:deep_test].enhance ["db:test:prepare"] Spec::Rake::SpecTask.new(:deep_spec) do |t| t.spec_files = FileList['spec/**/*_spec.rb'] t.deep_test :number_of_workers => 2 end Rake::Task[:deep_spec].enhance ["db:test:prepare"]