diff options
author | 2020-02-21 11:40:22 +0800 | |
---|---|---|
committer | 2020-02-21 11:40:22 +0800 | |
commit | f01da39ed3cdc06003bc6d28c57fd9a6cfab3efb (patch) | |
tree | 3aaf4d6b22f6fd2aec5b906ef3b8497791fb0271 /pom.xml | |
parent | 181dcb69d6b88300e49646053a946f1d10b1e6f0 (diff) |
recover code coverage
Issue-ID: VNFSDK-548
Signed-off-by: Victor Gao <victor.gao@huawei.com>
Change-Id: Id2c719186369485e55404ab9d001fc0907c51b65
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -31,8 +31,47 @@ <version>1.4.0-SNAPSHOT</version> <packaging>pom</packaging> <name>vnfsdk-refrepo</name> + + <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>vnfmarket-be</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> |