diff options
author | renealr <reneal.rogers@amdocs.com> | 2019-04-05 12:25:23 -0400 |
---|---|---|
committer | renealr <reneal.rogers@amdocs.com> | 2019-04-05 13:18:53 -0400 |
commit | e914376e0831e8e2f73a4c7c26576a271bcbbe56 (patch) | |
tree | e7479bf763755afa83c95de8ff2687172f6d6b43 | |
parent | e93913a77a630501cc158c384e105a978bab50e8 (diff) |
set jacoco coverage check limit
Issue-ID: AAI-2253
Change-Id: I5a05025043f2af9e3d6aee9d7e45f35c3f889148
Signed-off-by: renealr <reneal.rogers@amdocs.com>
-rw-r--r-- | search-data-service-app/pom.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/search-data-service-app/pom.xml b/search-data-service-app/pom.xml index 485e9a4..bd4daee 100644 --- a/search-data-service-app/pom.xml +++ b/search-data-service-app/pom.xml @@ -51,6 +51,7 @@ </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.58</jacoco.line.coverage.limit> </properties> <dependencies> @@ -426,6 +427,28 @@ <!-- <append>true</append> --> </configuration> </execution> + <execution> + <id>default-check</id> + <goals> + <goal>check</goal> + </goals> + <configuration> + <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile> + <rules> + <!-- implementation is needed only for Maven 2 --> + <rule implementation="org.jacoco.maven.RuleConfiguration"> + <element>BUNDLE</element> + <limits> + <limit implementation="org.jacoco.report.check.Limit"> + <counter>LINE</counter> + <value>COVEREDRATIO</value> + <minimum>${jacoco.line.coverage.limit}</minimum> + </limit> + </limits> + </rule> + </rules> + </configuration> + </execution> </executions> </plugin> |