I’ve been looking for a decent code coverage tool that integrates nicely with Eclipse for some time. I’ve used clover and cobertura on the server side as part of automated builds and they are both very cool tools, but I’ve been looking for an open source tool to run on single tests in the IDE just to see how much things are improving.

Enter djUnit. This tool has exactly the format and integration that I was after. Instead of doing a /Run As…/JUnit Test, you simply change that to /Run As…/djUnit test. And voila! Check out the sample report it generates.

The other thing that is really simple is removing all of its coverage markers. Open up the djUnit view (I use it as a fastview), click “remove all markers”, you’re done. Easy, non-intrusive, and extremely useful.

The speed the plugin does its on-the-fly instrumenting has also improved enormously over the last few months, to the point where it’s slower, but not painfully slower, than running a normal jUnit test - and I’m happy to wait a little for the incredible convenience.

Huge kudos to the the djUnit team. Awesome stuff.