From: Michael Arrastia Date: Fri, 29 Mar 2019 11:40:43 +0000 (+0000) Subject: Configure Jacoco plugin to enforce min coverage X-Git-Tag: 1.4.0~3^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F83713%2F5;p=aai%2Fgizmo.git 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 --- 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} + + + + + + + + +