Test Driven Development is all about having a quick feedback loop. You know something’s broken immediately because your tests fail.
As projects grow you write more tests, and it takes more time to run your tests. It becomes increasingly important to be able to only run one test or the few tests you care about so you can keep moving with the code.
TextMate has some commands to do this (
Here’s how to do it with
Usually when I’m coding I have Vim open in split screen mode (with
rails.vim installed, of course.) I’ll have a spec file on one side, and the application code on the other.