summaryrefslogtreecommitdiffstats
path: root/cps-parent
diff options
context:
space:
mode:
authorClaudio David Gasparini <claudio.gasparini@pantheon.tech>2021-01-13 13:28:07 +0100
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>2021-01-14 12:47:12 +0100
commitd45b2dc0ec3bb7d56ef1eee784a887459f609832 (patch)
tree7847917be4cdd4ae5f8f6439f525c68c355b665b /cps-parent
parentdc6f81cf4ce3c42e711f1cd0c6f50000d4e0101d (diff)
Fix code coverage for sonar
The get the multi module aggregate report to be consumed by sonar we are enforced to use full path to all reports. - 90.4 % coverage detected by sonar achieved Issue-ID: CPS-87 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I91d81063e7234327cb4458c31fa27601ec22e9cd
Diffstat (limited to 'cps-parent')
-rwxr-xr-xcps-parent/pom.xml11
1 files changed, 10 insertions, 1 deletions
diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml
index b42675199b..125c843114 100755
--- a/cps-parent/pom.xml
+++ b/cps-parent/pom.xml
@@ -26,7 +26,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
<repository.name>nexus3.onap.org:10001/onap/cps-service</repository.name>
- <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-aggregate/jacoco.xml,${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<spotbugs-maven-plugin.version>4.1.3</spotbugs-maven-plugin.version>
<spring-boot-maven-plugin.version>2.3.3.RELEASE</spring-boot-maven-plugin.version>
<spotbugs.slf4j.version>1.8.0-beta4</spotbugs.slf4j.version>
@@ -35,6 +34,16 @@
<swagger-codegen-maven-plugin.version>3.0.18</swagger-codegen-maven-plugin.version>
<snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
<tag.version>${project.version}</tag.version>
+
+ <jacoco.reportDirectory.aggregate>${project.reporting.outputDirectory}/jacoco-aggregate</jacoco.reportDirectory.aggregate>
+ <sonar.coverage.jacoco.xmlReportPaths>
+ ../cps-ri/target/site/jacoco-ut/jacoco.xml,
+ ../cps-ri/target/site/jacoco-aggregate/jacoco.xml,
+ ../cps-service/target/site/jacoco-ut/jacoco.xml,
+ ../cps-service/target/site/jacoco-aggregate/jacoco.xml,
+ ../cps-rest/target/site/jacoco-ut/jacoco.xml,
+ ../cps-rest/target/site/jacoco-aggregate/jacoco.xml,
+ </sonar.coverage.jacoco.xmlReportPaths>
</properties>
<distributionManagement>