Consider the following Groovy code:
And the following test:
If you use Cobertura to perform your coverage, the resulting report might look like:

Your Ant build file to make all this happen might look like:
For more details, see GINA or the Cobertura web site or Code Coverage with Cobertura.
Labels