summaryrefslogtreecommitdiffstats
path: root/zte
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2020-02-20 14:17:11 +0800
committerYan Yang <yangyanyj@chinamobile.com>2020-02-20 06:18:23 +0000
commit8cad60f58560528993601cd1d76fe769678dbfff (patch)
tree52443cd112e702f7ccf55edae4bddb6fe2a2e3d8 /zte
parentb435a264031c173f3aeff4950b68b3b2ca13da74 (diff)
Fix error about coverage
Change-Id: I0916b214ecda9b4a9bfb54e1c896ad10a713f8c6 Issue-ID: VFC-1619 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'zte')
-rw-r--r--zte/sfc-driver/plugin-standalone/pom.xml30
1 files changed, 29 insertions, 1 deletions
diff --git a/zte/sfc-driver/plugin-standalone/pom.xml b/zte/sfc-driver/plugin-standalone/pom.xml
index eb75ecb..50c6f09 100644
--- a/zte/sfc-driver/plugin-standalone/pom.xml
+++ b/zte/sfc-driver/plugin-standalone/pom.xml
@@ -38,6 +38,11 @@
<properties>
<packagename>sfc-driver</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>
<build>
@@ -69,7 +74,7 @@
</executions>
</plugin>
- <plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
@@ -136,6 +141,29 @@
</execution>
</executions>
</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>
+
<!--<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>