This documentation relates to an earlier version of Clover.
View this page in the current documentation or visit the current documentation home.

Skip to end of metadata
Go to start of metadata

Clover provides a set of Command line tools for integration with legacy build systems such as Make, or custom build scripts. If you use Jakarta Ant to build your project, a set of Clover Ant Tasks provides easier Ant integration.

To use the tools in your build system, the synopsis is:

  1. Copy and instrument your source files using CloverInstr.
  2. Compile the instrumented source files using a standard java compiler.
  3. Execute your tests using whatever framework.
  4. (Optional) If you have multiple separate coverage databases, merge them using CloverMerge.
  5. Use either the XmlReporter, HtmlReporter , PDFReporter or ConsoleReporter to view the measured coverage results.

Command line tools:


Copies and instruments individual java source files, or a directory of source files.


Merges existing Clover databases to allow for combined reports to be generated.


Produces coverage reports in XML.


Produces coverage reports in HTML.


Produces coverage reports in PDF format.


Reports coverage results to the console.

  • No labels