diff options
author | Kajur, Harish (vk250x) <vk250x@att.com> | 2018-03-24 21:59:03 -0400 |
---|---|---|
committer | Kajur, Harish (vk250x) <vk250x@att.com> | 2018-03-26 08:48:18 -0400 |
commit | f1a8fb1bc04f5d685f2b31d35db605f6fa054f60 (patch) | |
tree | a5e432ad396ec3f2587993a69099890ed723e0d8 /aai-core/pom.xml | |
parent | b1264ad4012f67664d71982a0eaad7e9bcce34f4 (diff) |
Add plugin to check coverage
Get line coverage to 50% and ensure it doesn't go down
Issue-ID: AAI-498
Change-Id: Ib466b7e2b7cb6d2f888e3b58c2073bb02ab6f809
Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
Diffstat (limited to 'aai-core/pom.xml')
-rw-r--r-- | aai-core/pom.xml | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/aai-core/pom.xml b/aai-core/pom.xml index 73f2a74d..de468af9 100644 --- a/aai-core/pom.xml +++ b/aai-core/pom.xml @@ -45,10 +45,11 @@ <sonar.projectVersion>${project.version}</sonar.projectVersion> <httpclient.version>4.5.1</httpclient.version> <jackson.version>2.2.3</jackson.version> - <eelf.core.version>1.0.0</eelf.core.version> - <logback.version>1.2.3</logback.version> - <freemarker.version>2.3.21</freemarker.version> - <activemq.version>5.15.3</activemq.version> + <eelf.core.version>1.0.0</eelf.core.version> + <logback.version>1.2.3</logback.version> + <freemarker.version>2.3.21</freemarker.version> + <activemq.version>5.15.3</activemq.version> + <jacoco.line.coverage.limit>0.50</jacoco.line.coverage.limit> </properties> <profiles> <profile> @@ -282,6 +283,27 @@ <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory> </configuration> </execution> + <execution> + <id>default-check</id> + <goals> + <goal>check</goal> + </goals> + <configuration> + <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile> + <rules> + <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> <plugin> |