Automatically run unit-tests when saving in Eclipse

Following on from Automatically run unit-tests when compiling in Visual Studio 2008, I was delighted to discover that the Eclipse alternative is even better.

In Eclipse, simply install a plugin called Infinitest, from the official download site. Also, ensure ProjectBuild automatically is checked.

Now, whenever you save, it will run the relevant tests. This is much quicker than having to run all the tests (although you should do that every now and then to be safe!!). Secondly, test errors appear as build errors, and you get a nice red or green result in the status bar, so the UI is perfect. Finally, Eclipse just seems to run tests vastly quicker than VS 2008.

Advertisements