summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorPriyadharshini <priyadharshini.b96@wipro.com>2020-02-20 06:45:56 +0000
committerPriyadharshini <priyadharshini.b96@wipro.com>2020-02-20 06:45:56 +0000
commit1389746c1a81aca1b82a5e1e43d25a2d6e8c9229 (patch)
tree7230c8fd29c83b8ecd0fa2fea26bc41d758b9508 /pom.xml
parent36970375b6009809b1682d86bd5a0e239283f515 (diff)
Fix Sonar cloud migration coverage issue
Issue-ID: SO-2663 Signed-off-by: Priyadharshini <priyadharshini.b96@wipro.com> Change-Id: I0fcfbdb91da2dc6dd74936e81bd99900ff972179
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 1a3e55c..8ca6378 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,6 +24,8 @@
<siteNexusPath>/content/sites/site/org/onap/so/libs/${project.version}</siteNexusPath>
<format.skipValidate>false</format.skipValidate>
<format.skipExecute>true</format.skipExecute>
+ <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
+ <jacoco.version>0.8.5</jacoco.version>
</properties>
<distributionManagement>
<repository>
@@ -379,6 +381,29 @@
<version>2.9.8</version>
</dependency>
</dependencies>
+ </plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${jacoco.version}</version>
+ <executions>
+ <execution>
+ <id>prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
+ <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>