This documentation relates to Clover 3.1.x
If you are using an earlier version, please view the previous versions of the Clover documentation and select the relevant version.
Skip to end of metadata
Go to start of metadata

Reports Code Coverage for the given coverage database to the console.

Usage

Params

-i, --initstring <file>

The initstring of the coverage database.

Options

-a, --alwaysreport

Forces a report to be generated, even if there is no coverage data. Defaults to 'false', i.e. a report with no coverage will abort generation.

-t, --title <string>

Report title

-l, --level <string>

The level of detail to report. Valid values are "summary", "class", "method", "statement". Default value is "summary".

-p, --sourcepath <path>

The source path to search when looking for source files.

-s, --span <interval>

Specifies how far back in time to include coverage recordings from since the last Clover build. See Using Spans. Default includes "all coverage data found".

-d, --debug

Switch logging level to debug

-v, --verbose

Switch logging level to verbose

API Usage

ConsoleReporter provides a simple API that accepts an array of strings representing the command line arguments and returns an integer result code. The following fragment illustrates use of the API:

Examples

Reads coverage for the Clover database "clover.db", and produces a summary report to the console.

Produces the same report as above, but includes method-level coverage information, and a report title.

Labels
  • None