Produces an HTML report of Code Coverage for the given coverage database.
Note: in Clover 3.1.x and older a class was named com.cenqua.clover.reporters.html.HtmlReporter.
-i, --initstring <file>
The initstring of the coverage database.
-o, --outputdir <dir>
The directory to write the report to. Will be created if it doesn't exist.
Forces a report to be generated, even if there is no coverage data. Defaults to '
Don't render coverage bars.
Don't color syntax-highlighted source — smaller HTML output.
-c, --orderby <compname>
Comparator to use when listing packages and classes. Default is PcCoveredAsc.
Switch logging level to debug.
|-e, --showempty||Show classes/packages even if they don't have any statements, methods or conditionals. default is false|
-f, --filter <string>
Comma or space separated list of contexts to ignore when generating coverage reports. Most useful one is "catch".
Don't render source level coverage.
Specifies whether or not to include coverage attributed to a test that has failed. If omitted, failed test coverage is not included. Default setting is 'false'.
|Insert no-cache browser directives in html output.|
-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. See Using Spans. Default includes "all coverage data found".
|-si, --showinner||Since 3.2.0: Show inner functions in the report (like a lambda function inside a method).|
|-sl, --showlambda||Since 3.2.0: Show lambda functions in the report.|
Since 3.1.5: Calculate and show unique per-test coverage (for large projects can consume much memory and take a significant amount of time). Defaults to false.
Since 4.0.0: Style of the report:
"adg" - following the Atlassian Design Guidelines (default)
"classic" - JavaDoc-like
Classic reports has been removed in Clover 4.1.0
-t, --title <string>
-tc, --threadcount <int>
|Number of additional threads to be allocated to report generation. Default is 0.|
-tw, --tabwidth <int>
The number of spaces to subsitute TAB characters with. Defaults to 4.
Switch logging level to verbose.
The HtmlReporter.main() calls System.exit() and returns a non-zero value in case of error during HTML report generation.
HtmlReporter 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:
Reads coverage for the Clover database "clover.db", and produces a report in the directory "clover_html".
Produces the same report as above, but includes a report title, and orders lists by total elements covered rather than percentage covered.