diff options
author | yangyan <yangyanyj@chinamobile.com> | 2020-02-20 15:49:01 +0800 |
---|---|---|
committer | Yan Yang <yangyanyj@chinamobile.com> | 2020-02-20 07:52:38 +0000 |
commit | 2da65a06f927039e6f3ee1c440b92b032abaa003 (patch) | |
tree | bd2bc19b85d6a4a4f8c35328801b12caa1c1ac47 /nokiav2 | |
parent | 86df28153493d0b5a558f91c49f2823e415f96a1 (diff) |
Fix error about coverage
Change-Id: I2b0f63662a8705eed68657648fdfca5e9044691a
Issue-ID: VFC-1619
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'nokiav2')
-rw-r--r-- | nokiav2/driver/pom.xml | 27 | ||||
-rw-r--r-- | nokiav2/generatedapis/pom.xml | 3 |
2 files changed, 29 insertions, 1 deletions
diff --git a/nokiav2/driver/pom.xml b/nokiav2/driver/pom.xml index a82fefaf..d0d06f91 100644 --- a/nokiav2/driver/pom.xml +++ b/nokiav2/driver/pom.xml @@ -30,6 +30,11 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> + <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> <dependencies> <dependency> @@ -124,6 +129,28 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> </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> </project> diff --git a/nokiav2/generatedapis/pom.xml b/nokiav2/generatedapis/pom.xml index 4d089cae..afa784a9 100644 --- a/nokiav2/generatedapis/pom.xml +++ b/nokiav2/generatedapis/pom.xml @@ -335,7 +335,8 @@ Release AAI </configuration> </execution> </executions> - </plugin> + </plugin> + </plugins> </build> <dependencies> |