I have just read Michael C. Feathers great book Working Effectively with Legacy Code, the bible of introducing tests to legacy code. In this book he describes something called Edit-triggered testing:
If it isn't out by the time this book is released, I suspect that someone will soon develop an IDE that allows you to specify a set of tests that will run at every keystroke. It would be an incredible way of closing the feedback loop.
It has to happen. It just seems inevitable. There are already IDEs that check syntax on each keystroke and change the color of code when there are erros. Edit-triggered testing is the next step.
When I read this I hadn't heard about any IDEs or tools that support this. However, I just found a project called Infinitest that supports this for Java.
My questions are:
- Are there any other tools/framework that support this (hopefully also for Visual Studio)?
- What are your experiences with this kind of testing (efficient, slows down the IDE, etc)?
- Is this the next step of TDD?
Updates:
- Take a look a look at this screencast to see Infinitest in action for Eclipse.
- Just found a blog where Brett Schuchert shares some experiences with Infinitest.