Configure Jacoco limits using properties

This commit is contained in:
Paul Campbell 2016-04-25 22:38:14 +01:00
parent 6b292931d6
commit 9f1b6fb68c

10
pom.xml
View file

@ -57,6 +57,10 @@
<highwheel-maven.version>1.2</highwheel-maven.version> <highwheel-maven.version>1.2</highwheel-maven.version>
<maven-project-info-reports-plugin.version>2.9</maven-project-info-reports-plugin.version> <maven-project-info-reports-plugin.version>2.9</maven-project-info-reports-plugin.version>
<maven-jxr-plugin.version>2.5</maven-jxr-plugin.version> <maven-jxr-plugin.version>2.5</maven-jxr-plugin.version>
<jacoco-class-line-covered-ratio>0.50</jacoco-class-line-covered-ratio>
<jacoco-class-instruction-covered-ratio>0.80</jacoco-class-instruction-covered-ratio>
<jacoco-class-missed-count-maximum>0</jacoco-class-missed-count-maximum>
</properties> </properties>
<developers> <developers>
@ -301,17 +305,17 @@
<limit> <limit>
<counter>LINE</counter> <counter>LINE</counter>
<value>COVEREDRATIO</value> <value>COVEREDRATIO</value>
<minimum>0.50</minimum> <minimum>${jacoco-class-line-covered-ratio}</minimum>
</limit> </limit>
<limit> <limit>
<counter>INSTRUCTION</counter> <counter>INSTRUCTION</counter>
<value>COVEREDRATIO</value> <value>COVEREDRATIO</value>
<minimum>0.80</minimum> <minimum>${jacoco-class-instruction-covered-ratio}</minimum>
</limit> </limit>
<limit> <limit>
<counter>CLASS</counter> <counter>CLASS</counter>
<value>MISSEDCOUNT</value> <value>MISSEDCOUNT</value>
<maximum>0</maximum> <maximum>${jacoco-class-missed-count-maximum}</maximum>
</limit> </limit>
</limits> </limits>
</rule> </rule>