Test Coverage Add comment to Wiki View in Wiki Edit Wiki page Printable Version

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.



Results of your search request can come from various sources: the Groovy website itself, the JIRA issues, the API documentation, as well as a few other interesting Groovy-related blogs.

  By  -  pages  -  views  - last modified