Hello, i would like to produce a merged database containing the measured coverage of all databases found under for example /home/clover/
I found the way with ant :
<clover-merge initString="mergedcoverage.db"> <cloverDbSet dir="/home/projects" span="30 mins"> <include name="**/coverage.db"/> </cloverDbSet> </clover-merge>
How i can do it with maven?
Hi,
That's possible for multi-module maven project. There are two options:
<
plugin
>
<
groupId
>com.atlassian.maven.plugins</
groupId
>
<
artifactId
>maven-clover2-plugin</
artifactId
>
<
configuration
>
<
cloverDatabase
>/path/to/network/drive/clover.db</
cloverDatabase
>
<
singleCloverDatabase
>true</
singleCloverDatabase
>
</
configuration
>
</
plugin
>
Don't define <cloverDatabase> and <singleCloverDatabase> in top-level pom.xml so that default values will be used (relative path target/clover/clover.db and false).
mvn clover2:aggregate"
<!-- Top-level pom.xml -->
<
plugin
>
<
groupId
>com.atlassian.maven.plugins</
groupId
>
<
artifactId
>maven-clover2-plugin</
artifactId
>
<
configuration
>
<
cloverMergeDatabase
>/path/to/network/drive/cloverMerged.db</
cloverMergeDatabase
>
</
configuration
>
</
plugin
>
Cheers,
Jacek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.