[
https://issues.apache.org/jira/browse/ZOOKEEPER-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16336424#comment-16336424
]
ASF GitHub Bot commented on ZOOKEEPER-2955:
-------------------------------------------
Github user afine commented on a diff in the pull request:
https://github.com/apache/zookeeper/pull/443#discussion_r163373344
--- Diff: build.xml ---
@@ -1406,50 +1410,53 @@
xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant">
<target name="test-core" depends="test-core-java, test-core-cppunit"/>
+ <target name="test-coverage-java">
+ <antcall target="test-core-java">
+ <param name="run.clover" value="true"/>
+ </antcall>
+ <antcall target="generate-clover-reports"/>
+ </target>
+
<!-- ====================================================== -->
<!-- Run optional third-party tool targets -->
<!-- ====================================================== -->
<!-- clover code coverage -->
- <target name="clover" depends="clover.setup, clover.info"
- description="Instrument the Unit tests using Clover. Requires
a Clover license and CLOVER_HOME environment variable set appropriately. To
use, specify -Drun.clover=true on the command line."/>
+ <target name="clover" if="run.clover"
depends="ivy-retrieve-test-coverage-java, clover.check, clover.setup"
+ description="Instrument the Unit tests using Clover. To use,
specify -Drun.clover=true on the command line."/>
--- End diff --
we should update this description to show that we have an ant task that can
be used instead of specifying a system property
> Enable Clover code coverage report
> ----------------------------------
>
> Key: ZOOKEEPER-2955
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2955
> Project: ZooKeeper
> Issue Type: Test
> Components: tests
> Affects Versions: 3.5.3, 3.4.11
> Reporter: Mark Fenes
> Assignee: Mark Fenes
> Priority: Major
>
> We have limited code coverage support in ZK. Clover for Java was running in
> the past but was turned off.
> Enable Clover code coverage report to make us more confident on the quality,
> stability and compatibility of future ZK releases.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)