<clover-log>
Description
Reports coverage information to the console at different levels.
Parameters
Attribute | Description | Required |
initstring | The initstring of the coverage database. | No; If not specified here, you must ensure <clover-setup> is called prior the execution of this task. |
level | Controls the level of detail included in the report. Valid values are summary, class, method, statement | No; defaults to "summary" |
filter | comma or space separated list of contexts to ignore when calculating coverage. See Using Contexts. | No |
span | Specifies how far back in time to include coverage recordings from since the last Clover build. See Using Spans. | No; Defaults to "0s". |
Nested elements
<Package>
Specifies a named package to restrict the report to. Multiple <package> elements can be specified.
Parameters
Attribute | Description | Required |
name | The name of the package to include. | Yes |
<Sourcepath>
Specifies a Ant path that Clover should use when looking for source files.
Examples
<clover-log/>
Prints a summary of code coverage to the console.
<clover-log> <package name="com.acme.killerapp.core"/> </clover-log>
Prints a summary of code coverage for the package com.acme.killerapp.core to the console.
<clover-log level="statement"> <package name="com.acme.killerapp.core"/> </clover-log>
Prints detailed (source-level) code coverage information for the package com.acme.killerapp.core to the console.
<clover-log level="statement" filter="catch"> <package name="com.acme.killerapp.core"/> </clover-log>
As above, but catch blocks will not be considered in coverage reporting.
<clover-log level="statement"> <sourcepath> <pathelement path="/some/other/location"/> </sourcepath> </clover-log>
Prints source-level coverage report to the console. Clover will look for source files in the directory /some/other/location.