Using the parallel_tests
gem and running the tests in parallel, the whole suite ran in 39 seconds, rather than the usual 4-5 minutes.
by Will Hodgson
Once we’ve got the gem in main, this is how to use it:
rake parallel:create
rake parallel:prepare
RAILS_ENV=test rake parallel:spec
(The reason we need to explicitly set the rails env in the last step is due to an issue discussed here.)