aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pom.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index fb3bdd4..43c5d54 100644
--- a/pom.xml
+++ b/pom.xml
@@ -70,6 +70,7 @@ limitations under the License.
<logback.version>1.2.3</logback.version>
<version.com.google.guava>16.0.1</version.com.google.guava>
<shemaUnpackVersion>onap</shemaUnpackVersion>
+ <jacoco.line.coverage.limit>0.58</jacoco.line.coverage.limit>
</properties>
<dependencies>
@@ -490,6 +491,28 @@ limitations under the License.
</destFile>
</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>