Eclipse automatically run Junit tests
Posted by Jeff April 19, 2007
I’m getting google hits for the phrase “eclipse automatically run junit tests”… but that’s to Nosy, which is for python code.
For java/junit code, use the ct-eclipse plugin. It runs your tests, in the IDE, whenever your code changes. At the current time it only supports Eclipse 3.1 (!):
CT-Eclipse (Continuous Testing for Eclipse) builds on the automated developer support in Eclipse to make it even easier to keep your Java code well-tested, if you have a JUnit test suite. With CT-Eclipse enabled, as you edit your code, Eclipse runs your tests quietly in the background, and notifies you if any of them fail or cause errors. It is most useful in situations where you would already have a test suite while you are changing code: when performing maintenance, refactoring, or using test-first development.
It’s all about quick feedback loops.