From: Claudio David Gasparini Date: Wed, 18 Nov 2020 07:38:01 +0000 (+0100) Subject: Introduce jacoco-maven-plugin X-Git-Tag: 0.0.1~106 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F115019%2F3;p=cps.git Introduce jacoco-maven-plugin to enforce the minimum coverage Issue-ID: CPS-5 Signed-off-by: Claudio David Gasparini Change-Id: I7552fc65ab78e645c54af993840999e9818816b0 --- diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml index bd7e1a529a..99f60951fd 100644 --- a/cps-parent/pom.xml +++ b/cps-parent/pom.xml @@ -19,7 +19,9 @@ org.onap.cps.Application openjdk:11-jre-slim 11 + 0.8.6 2.6.0 + 0.15 https://nexus.onap.org https://nexus.onap.org 3.1.0 @@ -177,6 +179,26 @@ + + com.google.cloud.tools + jib-maven-plugin + ${jib-maven-plugin.version} + + + ${app} + USE_CURRENT_TIMESTAMP + + + ${base.image} + + + ${repository.name} + + ${tag.version} + + + + @@ -240,6 +262,7 @@ maven-surefire-plugin 3.0.0-M5 + @{argLine} false **/*Spec.java @@ -248,24 +271,37 @@ - com.google.cloud.tools - jib-maven-plugin - ${jib-maven-plugin.version} - - - ${app} - USE_CURRENT_TIMESTAMP - - - ${base.image} - - - ${repository.name} - - ${tag.version} - - - + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + default-prepare-agent + + prepare-agent + + + + coverage-check + + check + + + + + BUNDLE + + + INSTRUCTION + COVEREDRATIO + ${minimum-coverage} + + + + + + +