From 0be06219ae5d78933e2305e4325d7f5c7accdfbb Mon Sep 17 00:00:00 2001 From: Michael Arrastia Date: Fri, 29 Mar 2019 11:40:43 +0000 Subject: Configure Jacoco plugin to enforce min coverage Jacoco plugin is configured to set the minimum line coverage ratios to equal that of the current coverage level, to prevent future updates from decreasing the coverage level. Change-Id: Iba8b02c54b2db6fcefd7139187db3a638ac19b6d Issue-ID: AAI-2300 Signed-off-by: Michael Arrastia --- pom.xml | 42 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 2410001..93c61dc 100644 --- a/pom.xml +++ b/pom.xml @@ -39,8 +39,12 @@ limitations under the License. 1.4.1 1.4.0 1.4.0 - 1.4.0 + 1.4.0 1.3.1 + + 0.60 + ${project.build.directory}/code-coverage @@ -110,7 +114,7 @@ limitations under the License. cxf-rt-frontend-jaxrs 3.2.5 - + io.swagger @@ -127,7 +131,7 @@ limitations under the License. springfox-swagger-ui 2.9.2 - + @@ -366,7 +370,7 @@ limitations under the License. Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order Use in combination to rewrite code and imports, then checkstyle - + mvn formatter:format spotless:apply process-sources --> @@ -540,7 +544,35 @@ limitations under the License. - + + org.jacoco + jacoco-maven-plugin + + + default-check + + check + + + ${jacoco.report.directory}/jacoco-ut.exec + + + + BUNDLE + + + LINE + COVEREDRATIO + ${jacoco.line.coverage.limit} + + + + + + + + + -- cgit 1.2.3-korg