bookkeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eolive...@apache.org
Subject [bookkeeper] branch master updated: ISSUE #464: Add JaCoCo code coverage configuration to master pom.xml
Date Thu, 24 Aug 2017 07:29:24 GMT
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 17c5c44  ISSUE #464: Add JaCoCo code coverage configuration to master pom.xml
17c5c44 is described below

commit 17c5c445db8a700c595e620ab33275f33c95e4a6
Author: Enrico Olivelli <eolivelli@apache.org>
AuthorDate: Thu Aug 24 09:29:10 2017 +0200

    ISSUE #464: Add JaCoCo code coverage configuration to master pom.xml
    
    Introduce JaCoCo configuration to the master pom.xml.
    JaCoCo handles Java8 syntax better than Cobertura
    
    Author: Enrico Olivelli <eolivelli@apache.org>
    
    Reviewers: Sijie Guo <sijie@apache.org>
    
    This closes #465 from eolivelli/issue-464-jacoco, closes #464
---
 pom.xml | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/pom.xml b/pom.xml
index 930078f..8867b54 100644
--- a/pom.xml
+++ b/pom.xml
@@ -144,15 +144,16 @@
         <version>4.3.0</version>
       </plugin>
       <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>cobertura-maven-plugin</artifactId>
-        <version>2.7</version>
-        <configuration>
-         <formats>
-          <format>html</format>
-          <format>xml</format>
-         </formats>
-        </configuration>
+        <groupId>org.jacoco</groupId>
+        <artifactId>jacoco-maven-plugin</artifactId>
+        <version>0.7.9</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>prepare-agent</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
@@ -172,7 +173,8 @@
         <artifactId>maven-surefire-plugin</artifactId>
         <version>2.19.1</version>
         <configuration>
-          <argLine>-Xmx2G -Djava.net.preferIPv4Stack=true</argLine>
+          <!-- @{argLine} is a variable injected by JaCoCo-->
+          <argLine>@{argLine} -Xmx2G -Djava.net.preferIPv4Stack=true</argLine>
 	  <redirectTestOutputToFile>true</redirectTestOutputToFile>
 	  <reuseForks>false</reuseForks>
 	  <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>

-- 
To stop receiving notification emails like this one, please contact
['"commits@bookkeeper.apache.org" <commits@bookkeeper.apache.org>'].

Mime
View raw message