>I’ve been reading on and off Robert Martin’s Clean Code book. It’s a book that I highly recommend as it will make you think. You may not necessarily agree with everything, but it is a book you should have in your programming arsenal.
In the book, Uncle Bob talks about having your tests cover at least 80% of your code. However, I hadn’t found a program that would do analysis of testing coverage for eclipse plugins, that was free, integrated well with eclipse, and provided an easy view of what was being and executed by the tests and what wasn’t. That was until I found EclEmma for Eclipse. Below is a sample of a code coverage report from the VEX unit tests.
What is nice is that it will show down to the method level how much of that code has been executed by the tests. It’s a nice clean interface, and gives some valuable insight into the code. The less code that has been executed, the more likely that there are bugs hiding within that code.
Plugins exist for Eclipse 3.3 and Eclipse 3.4. The 3.4 version does also work with Eclipse 3.5 as well. It would be interesting to see others report what the analysis returned on their projects.