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-exec.git
The following commit(s) were added to refs/heads/master by this push:
new 1214df47 Set a baseline for JaCoCo checks
1214df47 is described below
commit 1214df47b3171d834943c8fe4cd3736b0896c267
Author: Gary Gregory <[email protected]>
AuthorDate: Wed May 8 14:26:14 2024 -0400
Set a baseline for JaCoCo checks
---
pom.xml | 9 ++++++++-
src/site/resources/profile.jacoco | 17 +++++++++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ecaca26a..e5ed36d9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -70,8 +70,15 @@ limitations under the License.
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
<test>*Test</test>
<project.build.outputTimestamp>2024-01-05T11:58:19Z</project.build.outputTimestamp>
+ <!-- JaCoCo: Don't make code coverage worse than: -->
+ <commons.jacoco.haltOnFailure>true</commons.jacoco.haltOnFailure>
+ <commons.jacoco.classRatio>0.76</commons.jacoco.classRatio>
+ <commons.jacoco.instructionRatio>0.70</commons.jacoco.instructionRatio>
+ <commons.jacoco.methodRatio>0.71</commons.jacoco.methodRatio>
+ <commons.jacoco.branchRatio>0.59</commons.jacoco.branchRatio>
+ <commons.jacoco.lineRatio>0.71</commons.jacoco.lineRatio>
+ <commons.jacoco.complexityRatio>0.56</commons.jacoco.complexityRatio>
</properties>
-
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
diff --git a/src/site/resources/profile.jacoco
b/src/site/resources/profile.jacoco
new file mode 100644
index 00000000..a12755f3
--- /dev/null
+++ b/src/site/resources/profile.jacoco
@@ -0,0 +1,17 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -----------------------------------------------------------------------------
+#
+# Empty file used to automatically trigger JaCoCo profile from commons parent
pom