aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjjia <Jennie.Jia@amdocs.com>2019-04-04 16:51:05 -0400
committerjjia <Jennie.Jia@amdocs.com>2019-04-04 16:52:13 -0400
commit8c01b58b76d44c051999362db92d6e69cb6fdd8b (patch)
treeeb87f73cad6a41ed82ecb19b0dbb7deb14d83e5f
parent8b95aeb7001d06e2094ae18697c63cb04156411b (diff)
Set DR Jacoco coverage limit
Issue-ID: AAI-1470 Change-Id: I12df70166ad98e0e64b5602fa8422b51e4a87c80 Signed-off-by: jjia <Jennie.Jia@amdocs.com>
-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>