diff options
author | Lee, Tian (tl5884) <TianL@amdocs.com> | 2019-10-03 15:19:52 +0100 |
---|---|---|
committer | Lee, Tian (tl5884) <TianL@amdocs.com> | 2019-10-03 15:19:52 +0100 |
commit | 9f2b50994a16d6ff41690ea29d08fefbc3ef8576 (patch) | |
tree | 95e48555db8539365b8a83f84119d01fa399b3d3 /pom.xml | |
parent | c423827a961dc9e363605a2d2ea4b4501ae76501 (diff) |
Enforce minimum Jacoco line coverage
Current coverage at 84%, enforced limit set to 80%
Change-Id: I9b3f6152dfec5bb1af5615d286899dbbe1f6fa47
Issue-ID: AAI-2366
Signed-off-by: Lee, Tian (tl5884) <TianL@amdocs.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 37 |
1 files changed, 8 insertions, 29 deletions
@@ -35,14 +35,8 @@ <properties> <checkstyle.config.location>google_checks.xml</checkstyle.config.location> - <!-- Sonar Properties --> - <sonar.language>java</sonar.language> - <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> - <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> - <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> - <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero> - <sonar.projectVersion>${project.version}</sonar.projectVersion> - <jacoco.line.coverage.limit>0.84</jacoco.line.coverage.limit> + <jacoco.report.directory>${project.build.directory}/code-coverage</jacoco.report.directory> + <jacoco.line.coverage.limit>0.80</jacoco.line.coverage.limit> </properties> <dependencies> @@ -152,40 +146,26 @@ </execution> </executions> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-deploy-plugin</artifactId> - </plugin> <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>sonar-maven-plugin</artifactId> - <version>3.2</version> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.7.201606060606</version> <configuration> - <dumpOnExit>true</dumpOnExit> + <excludes> + <exclude>org/onap/aai/babel/xml/generator/xsd/*</exclude> + </excludes> </configuration> <executions> <execution> - <id>jacoco-initialize-unit-tests</id> - <goals> - <goal>prepare-agent</goal> - </goals> - <configuration> - <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> - <!-- <append>true</append> --> - </configuration> - </execution> - <execution> <id>default-check</id> <goals> <goal>check</goal> </goals> <configuration> - <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile> + <dataFile>${jacoco.report.directory}/jacoco-ut.exec</dataFile> <rules> <!-- implementation is needed only for Maven 2 --> <rule implementation="org.jacoco.maven.RuleConfiguration"> @@ -203,7 +183,6 @@ </execution> </executions> </plugin> - </plugins> </build> |