I would like to increase the speed of my tests.
- Should I use
use_transactional_fixturesor go with thedatabase_cleanergem? - Which database_cleaner strategy is the best? I noticed that after migration from
:truncationto:transactionmy more than 800 examples run about 4 times faster! - Should I turn off
use_transactional_fixtureswhen I use database_cleaner:transaction? - Is it true that the best strategy for rack_test is
:transaction? - What is the best practices for changing strategy on the fly from
:transactionto:truncationwhen using selenium or akephalos?
P.S. Mysql, Rails 3, Rspec2, Cucumber
P.P.S. I know about spork and parallel_test and using them. But they are offtopic. For example, Spork save about 15-20 sec on whole suite run, but changing from :transaction to :truncation dramatically increase running time from 3.5 to 13.5 minutes (10 minutes difference).