Produces a JSON 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.json.JSONReporter.
-i, --initstring <file>
The initstring of the coverage database.
-o, --outputdir <dir>
The output directory for generated JSON.
Forces a report to be generated, even if there is no coverage data. Defaults to '
Switch logging level to debug.
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'.
|-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.|
|-tc, --threadcount <int>||Number of additional threads to be allocated to report generation. Default is 0.|
Switch logging level to verbose.
The JSONReporter.main() calls System.exit() and returns non-zero return code in case of error during JSON report generation.
JSONReporter 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:
Read coverage for the Clover database "clover.db" and produce a report in the directory "clover_json".