You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/05/08 17:17:44 UTC

(commons-dbcp) 02/02: Set a baseline for JaCoCo checks

This is an automated email from the ASF dual-hosted git repository.

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

commit 7d77b064b06f31f08ed4fdba37ef2d0b09e1b755
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed May 8 13:17:34 2024 -0400

    Set a baseline for JaCoCo checks
---
 pom.xml | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 170ae6ef..4cf096ad 100644
--- a/pom.xml
+++ b/pom.xml
@@ -208,9 +208,15 @@
     <findbugs.skip>true</findbugs.skip>
     <!-- spdx 0.6.0 can require Java 11 depending on undocumented behavior which kicks in for us here. -->
     <commons.spdx.version>0.5.5</commons.spdx.version>
-    <surefire.argline></surefire.argline>
+    <!-- JaCoCo: Don't make code coverage worse than: -->
+    <commons.jacoco.haltOnFailure>true</commons.jacoco.haltOnFailure>
+    <commons.jacoco.classRatio>0.98</commons.jacoco.classRatio>
+    <commons.jacoco.instructionRatio>0.68</commons.jacoco.instructionRatio>
+    <commons.jacoco.methodRatio>0.87</commons.jacoco.methodRatio>
+    <commons.jacoco.branchRatio>0.66</commons.jacoco.branchRatio>
+    <commons.jacoco.lineRatio>0.62</commons.jacoco.lineRatio>
+    <commons.jacoco.complexityRatio>0.76</commons.jacoco.complexityRatio>
   </properties>
-
   <build>
     <defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check spotbugs:check pmd:check pmd:cpd-check javadoc:javadoc</defaultGoal>
     <pluginManagement>
@@ -261,7 +267,7 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
-          <argLine>${surefire.argline}</argLine>
+          <argLine>${argLine} ${surefire.argline}</argLine>
           <excludes>
             <!-- Test support files -->
             <exclude>**/Tester*.java</exclude>