We TDD by using a command, like autotest, which triggers a test run each
save our documents. This provides perfect test-driven development; we
smallest testable change possible, predict the results, hit to save
change, and watch the test transcript.
However, test:recent runs our database outside its performance envelop.
database thinks that setting up a new schema is a rare event. So the
db:test:prepare command sometimes takes longer than the actual test run!
in turn, slows down our TDD cycle, by making us hesitate to hit .
What’s a clean and productized way to knock db:test:prepare, and its
ilk, out of
test:recent, while keeping it in the raw ‘rake test’ command?