summaryrefslogtreecommitdiffstats
path: root/huawei/vnfmadapter
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2020-02-20 14:33:38 +0800
committerYan Yang <yangyanyj@chinamobile.com>2020-02-20 06:35:08 +0000
commit86df28153493d0b5a558f91c49f2823e415f96a1 (patch)
treeb4ee53f683d506d94d13365243150f3fde60742c /huawei/vnfmadapter
parent725277ea69b1522afbe10a7e1421f8a3b9a5b5cf (diff)
Fix error about coverage
Change-Id: I613f27e0f356a34d5144bf9da4c2e6f532c68821 Issue-ID: VFC-1619 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'huawei/vnfmadapter')
-rw-r--r--huawei/vnfmadapter/pom.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/huawei/vnfmadapter/pom.xml b/huawei/vnfmadapter/pom.xml
index 7824513c..f3f82b44 100644
--- a/huawei/vnfmadapter/pom.xml
+++ b/huawei/vnfmadapter/pom.xml
@@ -27,6 +27,14 @@
<packaging>pom</packaging>
<name>vfc-nfvo-driver-vnfm-svnfm</name>
<description>nfvo vnfmadapter</description>
+ <properties>
+ <packagename>VnfmadapterService</packagename>
+ <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>VnfmadapterService</module>
</modules>
@@ -67,6 +75,29 @@
</instrumentation>
</configuration>
</plugin>
+ <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>