From b59d62f2abb254d924f5f6eaa14bdadb6d47a56d Mon Sep 17 00:00:00 2001 From: ramverma Date: Sun, 9 Sep 2018 15:07:34 +0100 Subject: 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 --- pom.xml | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) 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 -- cgit 1.2.3-korg