Rake test:recent without db:test:prepare

Railsers:

We TDD by using a command, like autotest, which triggers a test run each
time we
save our documents. This provides perfect test-driven development; we
make the
smallest testable change possible, predict the results, hit to save
the
change, and watch the test transcript.

However, test:recent runs our database outside its performance envelop.
Our
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!
That,
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?


Phlip

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs