Skip to content

Commit

Permalink
Set a baseline for JaCoCo checks
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed May 8, 2024
1 parent 1f1d6c5 commit 339a0f5
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,16 @@

<japicmp.skip>false</japicmp.skip>
<spotbugs.skip>false</spotbugs.skip>
<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.86</commons.jacoco.instructionRatio>
<commons.jacoco.methodRatio>0.87</commons.jacoco.methodRatio>
<commons.jacoco.branchRatio>0.83</commons.jacoco.branchRatio>
<commons.jacoco.lineRatio>0.86</commons.jacoco.lineRatio>
<commons.jacoco.complexityRatio>0.80</commons.jacoco.complexityRatio>
</properties>

<build>
<defaultGoal>clean verify apache-rat:check checkstyle:check japicmp:cmp javadoc:javadoc spotbugs:check pmd:check pmd:cpd-check</defaultGoal>
<pluginManagement>
Expand Down Expand Up @@ -276,7 +284,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Don't allow test to run for more than 30 minutes -->
<argLine>${argLine} ${surefire.argline}</argLine>
<!-- Don't allow test to run for more than 30 minutes -->
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
<includes>
<include>**/Test*.java</include>
Expand Down Expand Up @@ -418,20 +427,12 @@
<activation>
<jdk>[16,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
--illegal-access=permit
--add-opens java.base/java.lang=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<surefire.argline>
--illegal-access=permit
--add-opens java.base/java.lang=ALL-UNNAMED
</surefire.argline>
</properties>
</profile>
</profiles>

Expand Down

0 comments on commit 339a0f5

Please sign in to comment.