Skip to main content
Version: QB10

Publish Clover Report

Since QuickBuild 5.1.22, you can generate and publish Clover XML report by:

  1. Generate Cobertura XML report from Ant or Maven or any other build tool.
  2. Add Cobertura publish step by choosing Publish -> Cobertura Report from step menu.

Generate Clover Report

QuickBuild will NOT generate Clover report automatically, so first make sure the Clover report is produced by ANT or by any other build tool. The following example shows how to generate Cobertura test results with Ant or Maven
Clover coverage report target in build.xml

<target name="clover.current" depends="test.run">
<clover-report>
<current outfile="${clover.report.dir}/clover.xml" title="Clover Demo" charset="UTF-8" >
<format type="xml"/>
<columns>
<totalChildren/>
<filteredElements/>
<avgMethodComplexity/>
<uncoveredElements format="raw"/>
<totalPercentageCovered format="raw"/>
<complexity format="raw" />
<complexityDensity format="raw" />
<coveredBranches format="raw"/>
<coveredElements format="raw" />
<coveredMethods format="raw" />
<coveredStatements format="raw" />
<totalBranches />
<totalClasses />
<totalElements />
<totalFiles />
<totalMethods />
<totalStatements />
<ncLineCount />
<lineCount />
<uncoveredBranches format="raw" />
<uncoveredElements format="raw" />
<uncoveredMethods format="raw" />
<uncoveredStatements format="raw" />
</columns>
</current>
</clover-report>
</target>

The code snippet will generate the XML reports, and the report will be captured to '${clover.report.dir}/clover.xml'.

Publish Clover Report

Add Publish Clover Report step to your build workflow. If you have several report sets, you can add several steps with different report set names. Reference this page for more details.

Trouble Shooting