diff options
-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> |