I'm one of these that believe that a good application start by a complete coverage test. I'll explain how to setup Cobertura test coverage in an ant script and how to debug using a test coverage tool like Cobertura.
Glean is a framework of Ant scripts for generating feedback on a team's source code. Some of these tools are: cobertura, checkstyle, findbugs, jdepend, junitreport