summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Gao <victor.gao@huawei.com>2020-02-21 11:51:01 +0800
committerVictor Gao <victor.gao@huawei.com>2020-02-21 11:51:01 +0800
commit88f2d3e28e62c43be227c0ac2cdecb24b26bbdd5 (patch)
tree8c295fe44acc95e70ccc01ed40bafb4ccffb8ebf
parent510908a41ee588de320897b3b3356c088d790124 (diff)
recover code coverage
Issue-ID: VNFSDK-548 Signed-off-by: Victor Gao <victor.gao@huawei.com> Change-Id: I50f1d43cb4e0d7cf04d6b8842bf406adc52bcbab
-rw-r--r--pom.xml40
1 files changed, 40 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 2576c10..af3d997 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,8 +29,48 @@
<name>vnfsdk-functest</name>
<packaging>pom</packaging>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <sonar.language>java</sonar.language>
+ <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
+ <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
+ <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
+ <sonar.projectVersion>${project.version}</sonar.projectVersion>
+ <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
+ </properties>
+
<modules>
<module>vnf-sdk-function-test</module>
<module>distribution</module>
</modules>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <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>
+
</project>