How to run one Test::Unit test case from vim

November 28, 2009

I recently updated my vim script for running rspec specs from vim.

How To Run Rspec Specs From Vim

August 27, 2009

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 (Cmd-R, and Cmd-Shift-R).

Here’s how to do it with vim.

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.