Skip to end of metadata
Go to start of metadata

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:

For more details, see GINA or the Cobertura web site or Code Coverage with Cobertura.

  • No labels