sudo gem install parallel
script/plugin install git://github.com/grosser/parallel_tests.git
config/database.yml
test:
database: xxx_test<%= ENV['TEST_ENV_NUMBER'] %>
script/dbconsole -p
CREATE DATABASE `xxx_test2`;
...
script/generate rspec
(you'll probably only let it overwrite files in script/
)
Now and after each migration:
rake parallel:prepare
rake parallel:spec
rake parallel:features
If you want to test with multiple processes, you need to specify this when preparing the database and running the test, e.g:
rake parallel:prepare[4]
rake parallel:spec[4]
More than twice the amount of courses is probably not sensible, booting up rails takes its time, too.