🕷 zenspider.com

by ryan davis



sitemap
Looking for the Ruby Quickref?

autotest

Published 2012-06-14 @ 00:00

Tagged minitest, productivity

This is part of the Productivity Pr0n series.

Autotest, part of the ZenTest gem (notice the stupid case), is one of the more powerful and focused tools I use on a regular basis. The premise is simple: rerun relevant tests when you save, where “relevant” means tests relating to the changed file(s) plus previously failing tests. Once all failing tests are fixed, re-run the whole mess to make sure you didn’t break anything else accidentally.

autotest state machine

That’s it. There’s things you can tweak to make it know more about the particulars about your project and there is a plugin system with hooks so you can change functionality as needed… but I honestly use autotest straight up 90+% of the time.

It is an incredibly powerful tool and makes the developer feedback loop as tight as I can get it for a file-based language like ruby.

In my next post I’ll be talking about integrating it into emacs, which makes it even more powerful.

There are a few (old) videos showing autotest running on my [movies page].