From: ramverma Date: Sun, 9 Sep 2018 14:07:34 +0000 (+0100) Subject: Adding jacoco plugin to main pom X-Git-Tag: 2.0.0~48 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b59d62f2abb254d924f5f6eaa14bdadb6d47a56d;p=policy%2Fapex-pdp.git Adding jacoco plugin to main pom Overriding jacoco plugin setting in main pom of apex-pdp to build cumulative coverage report at project level so that the same gets reflected in sonar dashboard Change-Id: Ia4272192dae3af73806ed1caf3186b537ef10df1 Issue-ID: POLICY-1034 Signed-off-by: ramverma --- diff --git a/pom.xml b/pom.xml index 4ab4de478..3032465f5 100644 --- a/pom.xml +++ b/pom.xml @@ -48,6 +48,13 @@ 1.6 1.3.0-SNAPSHOT 1.3.0-SNAPSHOT + + + + ${project.basedir}/../target/code-coverage/jacoco-ut.exec + ${project.basedir}/../target/code-coverage/jacoco-it.exec + reuseReports @@ -664,6 +671,80 @@ + + + + org.jacoco + jacoco-maven-plugin + + + pre-unit-test + + prepare-agent + + + ${sonar.jacoco.reportPath} + true + + + + post-unit-test + test + + report + + + ${sonar.jacoco.reportPath} + + + + + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + **/gen/** + **/generated-sources/** + **/yang-gen/** + **/pax/** + + + + + + pre-unit-test + + prepare-agent + + + ${sonar.jacoco.reportPath} + + + + + post-unit-test + test + + report + + + ${sonar.jacoco.reportPath} + + + + + + + model