summaryrefslogtreecommitdiffstats
path: root/juju
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2020-02-20 14:23:27 +0800
committerYan Yang <yangyanyj@chinamobile.com>2020-02-20 06:25:24 +0000
commit8ff2e4321da49d0af3ef9da2915206774f800161 (patch)
tree276cc0ec2d55354183746e48509d1ffb04a04e18 /juju
parentc414590146754e0f6d60ed1edba385c902b65186 (diff)
Fix error about coverage
Change-Id: Iebc076a335980702f8fd1bb295a53ee12c2ec19e Issue-ID: VFC-1619 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'juju')
-rw-r--r--juju/juju-vnfmadapter/pom.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/juju/juju-vnfmadapter/pom.xml b/juju/juju-vnfmadapter/pom.xml
index 19775ab..7bf1748 100644
--- a/juju/juju-vnfmadapter/pom.xml
+++ b/juju/juju-vnfmadapter/pom.xml
@@ -27,6 +27,14 @@
<packaging>pom</packaging>
<name>vfc-nfvo-driver-vnfm-gvnfm-juju-vnfmadapter</name>
<description>nfvo juju-vnfmadapter</description>
+ <properties>
+ <packagename>Juju-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>Juju-vnfmadapterService</module>
</modules>
@@ -68,6 +76,29 @@
<check/>
</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>