clover-merge


Added by Edwin Dawson [Atlassian], last edited by Edwin Dawson [Atlassian] on Jan 10, 2008

Labels:

span span Delete
database database Delete
merge merge Delete
clover-merge clover-merge Delete
ant ant Delete
task task Delete
reporting reporting Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
Clover 2.0 Documentation

Index

Description

The <clover-merge> task merges several Clover databases into one, to allow for combined reports to be generated. The resultant database can be used with reporting tasks, such as <clover-report> or <clover-log>, using the initstring parameter. Please note that per-test coverage for merged databases is not currently supported.

Parameters

Attribute Description Required
initstring The location to write the Clover coverage database resulting from the merge. Yes.

Nested Elements of <clover-merge>

<cloverDb>

Specifies a Clover database to merge.

Parameters
Attribute Description Required
initstring The initString of the database to merge. Yes.
span Specifies how far back in time to include coverage recordings from since the last Clover build for this database. See Using Spans. No; defaults to "0 seconds".

<cloverDbSet>

Specifies an Ant FileSet of Clover databases to merge. Apart from those shown below, parameters and subelements are the same as for an Ant FileSet.

Parameters

See the Ant FileSet documentation for parameters and subelements available on FileSets.

Attribute Description Required
span Specifies how far back in time to include coverage recordings from since the last Clover build for this database. See Using Spans. No; defaults to "0 seconds".

Examples

<clover-merge initString="mergedcoverage.db">
    <cloverDb initString="projectAcoverage.db"/>
    <cloverDb initString="projectBcoverage.db" span="30 mins"/>
 </clover-merge>

This example produces a merged database containing the measured coverage of project A and project B.

<clover-merge initString="mergedcoverage.db">
    <cloverDbSet dir="/home/projects" span="30 mins">
          <include name="**/coverage.db"/>
    </cloverDbSet>
 </clover-merge>

This example produces a merged database containing the measured coverage of all databases found under /home/projects.