説明
The <clover-html-report> task generates a full HTML report with sensible default settings. If configured, a history point is also generated prior to generation of the full report. For more configuration options, use the <clover-report> task.
パラメーター
属性 |
説明 |
必須 |
|---|---|---|
outdir |
The directory to write the report to. |
はい。 |
initstring |
The path to the Clover database. If not specified, Clover will use the initstring set by a previous execution of |
いいえ。 |
title |
The title to use in the report. |
いいえ。 |
historydir |
The directory for Clover history points. If this attribute is set, a new history point will be generated prior to the generation of the full report. For more information, see |
いいえ。 |
testresultsdir |
The directory containing the XML results of the unit tests. Clover will look for all |
いいえ。 |
historyIncludes |
An Ant GLOB to select specific history point files within the |
No. Default is |
maxtestsperfile |
This limits the number of tests displayed for each file. |
いいえ。 |
numThreads |
The number of threads to start when generating an HTML report. A value of 0 will disable multi-threading for report generation. |
No. Default is 2. |
projectName |
Overrides the project name set in the Ant build file. This is used for display purposes only. |
No; defaults to the project name of the Ant build file. |
例
<clover-html-report outdir="clover/report"/>
This is the simplest way to generate an HTML report. It will be written to the directory "clover/report".
<clover-html-report outdir="build/clover/report"
historydir="clover/historypoints"
title="MyProject Coverage"/>
This will generate a report in the "build/clover/report" directory. A history point will be created in the "clover/historypoints" directory, and all history points in that directory will be used to generate the historical section of the report. The report will be titled "MyProject Coverage".