commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thecarlh...@apache.org
Subject [commons-dbutils] 03/04: Configure jacoco using the parent pom Replace usage of cobertura with jacoco Upgrade Mockito to latest
Date Sat, 02 Nov 2019 19:56:33 GMT
This is an automated email from the ASF dual-hosted git repository.

thecarlhall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbutils.git

commit 46466ed371b4784aca89b139d4690a7b0fca42ae
Author: Carl Hall <thecarlhall@apache.org>
AuthorDate: Sat Nov 2 12:51:36 2019 -0700

    Configure jacoco using the parent pom
    Replace usage of cobertura with jacoco
    Upgrade Mockito to latest
---
 pom.xml                                            | 40 ++--------------------
 .../{profile.cobertura => profile.jacoco}          |  0
 2 files changed, 3 insertions(+), 37 deletions(-)

diff --git a/pom.xml b/pom.xml
index 9f57496..441be19 100644
--- a/pom.xml
+++ b/pom.xml
@@ -214,7 +214,7 @@
     <dependency>
       <groupId>org.mockito</groupId>
       <artifactId>mockito-core</artifactId>
-      <version>1.9.5</version>
+      <version>3.1.0</version>
       <scope>test</scope>
     </dependency>
     <dependency>
@@ -239,7 +239,6 @@
     <maven.compiler.target>1.7</maven.compiler.target>
 
     <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
-    <jacoco.plugin.version>0.8.5</jacoco.plugin.version>
 
     <commons.componentid>dbutils</commons.componentid>
     <commons.module.name>org.apache.commons.dbutils</commons.module.name>
@@ -303,46 +302,13 @@
       <plugin>
         <groupId>org.jacoco</groupId>
         <artifactId>jacoco-maven-plugin</artifactId>
-        <version>${jacoco.plugin.version}</version>
         <executions>
           <execution>
-            <goals>
-              <goal>prepare-agent</goal>
-            </goals>
-          </execution>
-          <!-- attached to Maven test phase -->
-          <execution>
-            <id>report</id>
             <phase>test</phase>
-              <goals>
-                <goal>report</goal>
-              </goals>
-          </execution>
-          <execution>
-            <id>jacoco-check</id>
             <goals>
-              <goal>check</goal>
+              <goal>report</goal>
             </goals>
-            <configuration>
-              <rules>
-                <rule>
-                  <element>BUNDLE</element>
-                  <limits>
-                    <limit>
-                      <counter>INSTRUCTION</counter>
-                      <value>COVEREDRATIO</value>
-                      <minimum>0.6</minimum>
-                    </limit>
-                    <limit>
-                      <counter>CLASS</counter>
-                      <value>MISSEDCOUNT</value>
-                      <maximum>8</maximum>
-                    </limit>
-                  </limits>
-                </rule>
-              </rules>
-            </configuration>
-        </execution>
+          </execution>
         </executions>
       </plugin>
     </plugins>
diff --git a/src/site/resources/profile.cobertura b/src/site/resources/profile.jacoco
similarity index 100%
rename from src/site/resources/profile.cobertura
rename to src/site/resources/profile.jacoco


Mime
View raw message