Code coverage is a useful measure of the effectiveness of unit tests and can be derived for Groovy tests.
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: