From 63bd98ded5ad076972ebcbdc5f0e56b1e6849889 Mon Sep 17 00:00:00 2001 From: vmassol Date: Thu, 4 Dec 2003 21:46:36 +0000 Subject: [PATCH] Conditionally instrument test classes too. To instrument test classes set the maven.clover.instrument.tests to true. Note: This feature is still limited. it will only work if there is one path in maven.compile.src.set and maven.test.compile.src.set Ant paths git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114443 13f79535-47bb-0310-9956-ffa450edef68 --- clover/plugin.jelly | 20 +++++++++++++++++--- clover/plugin.properties | 3 +++ clover/xdocs/changes.xml | 5 +++++ clover/xdocs/properties.xml | 10 ++++++++++ 4 files changed, 35 insertions(+), 3 deletions(-) diff --git a/clover/plugin.jelly b/clover/plugin.jelly index 34f2fcff..47b917eb 100644 --- a/clover/plugin.jelly +++ b/clover/plugin.jelly @@ -83,10 +83,24 @@ Setting Clover compiler + + + + initstring="${cloverDatabase}" + flushpolicy="interval" + flushinterval="500"> + + + + + + + + + + + Now using primary build.compiler : ${build.compiler} diff --git a/clover/plugin.properties b/clover/plugin.properties index 690a3e3b..9fa4c69b 100644 --- a/clover/plugin.properties +++ b/clover/plugin.properties @@ -10,6 +10,9 @@ maven.build.clover.classes = ${maven.build.clover}/classes maven.clover.database.dir = ${maven.build.clover}/database maven.clover.orderBy=PcCoveredAsc +# Whether tests should be instrumented by Clover or not +maven.clover.instrument.tests = false + # What are the reports that should be generated maven.clover.report.html=true maven.clover.report.xml=false diff --git a/clover/xdocs/changes.xml b/clover/xdocs/changes.xml index db8d3503..f6c52561 100644 --- a/clover/xdocs/changes.xml +++ b/clover/xdocs/changes.xml @@ -9,6 +9,11 @@ + + Conditionally instrument test classes too. To instrument test classes + set the maven.clover.instrument.tests to + true. + Make sure that the clover plugin restore other plugin's properties it has modified. diff --git a/clover/xdocs/properties.xml b/clover/xdocs/properties.xml index fda0dd33..cbbd532c 100644 --- a/clover/xdocs/properties.xml +++ b/clover/xdocs/properties.xml @@ -27,6 +27,16 @@ PcCoveredAsc + + maven.clover.instrument.tests + Yes + + Decides whether to instrument test classes. + + + false + + maven.clover.report.html Yes