- Normal Rails setup: 30 seconds for
rake test
- Using 1.9.3-falcon: 22 seconds
- Using merged task w/ db reset: 16 seconds
- Using merged task w/o db reset: 12 seconds
- Using raw ruby execution: 9 seconds
You can run rake test:fast:db
to get a merged run that resets your db. However, if you have clean tests that don't pollute the db between runs, you can just run rake test:fast
and it will omit db:reset. This means your sequence numbers (under PostgreSQL, at least) may keep increasing, but if you tests against those I have other words for you.