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/02 20:15:30 UTC
(commons-validator) branch master updated: Set a (sadly low) baseline for JaCoCo
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-validator.git
The following commit(s) were added to refs/heads/master by this push:
new 6c7e25e2 Set a (sadly low) baseline for JaCoCo
6c7e25e2 is described below
commit 6c7e25e272264133abfd6c8397c22b5a9ad55b5d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu May 2 16:15:24 2024 -0400
Set a (sadly low) baseline for JaCoCo
---
pom.xml | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index b2c51b69..f237a3fb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -58,7 +58,15 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.build.outputTimestamp>2024-01-01T00:00:00Z</project.build.outputTimestamp>
<commons.release.isDistModule>true</commons.release.isDistModule>
- </properties>
+ <!-- JaCoCo: Don't make code coverage worse than: -->
+ <commons.jacoco.haltOnFailure>true</commons.jacoco.haltOnFailure>
+ <commons.jacoco.classRatio>0.97</commons.jacoco.classRatio>
+ <commons.jacoco.instructionRatio>0.87</commons.jacoco.instructionRatio>
+ <commons.jacoco.methodRatio>0.81</commons.jacoco.methodRatio>
+ <commons.jacoco.branchRatio>0.74</commons.jacoco.branchRatio>
+ <commons.jacoco.lineRatio>0.78</commons.jacoco.lineRatio>
+ <commons.jacoco.complexityRatio>0.71</commons.jacoco.complexityRatio>
+ </properties>
<scm>
<connection>scm:git:https://gitbox.apache.org/repos/asf/commons-validator</connection>
@@ -334,8 +342,10 @@
systemPropertyVariables are set too late in Surefire
versions after 2.21.0 and before 3.0-M4 (but only on Windows!)
Use the command-line instead to ensure the property is set early enough
+
+ Use ${argLine} to get JaCoCo to work properly.
-->
- <argLine>-Djava.locale.providers=COMPAT,SPI</argLine>
+ <argLine>${argLine} -Djava.locale.providers=COMPAT,SPI</argLine>
</configuration>
</plugin>
</plugins>