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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s