Skip to content

Commit

Permalink
yegor256#250: Let's Jacoco enforces minimum code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciofx committed Jun 28, 2017
1 parent e3b5ee9 commit 2c54e24
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pom.xml
Expand Up @@ -138,6 +138,52 @@
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-check</id>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>INSTRUCTION</counter>
<value>COVEREDRATIO</value>
<minimum>0.67</minimum>
</limit>
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>0.74</minimum>
</limit>
<limit>
<counter>BRANCH</counter>
<value>COVEREDRATIO</value>
<minimum>0.69</minimum>
</limit>
<limit>
<counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value>
<minimum>0.63</minimum>
</limit>
<limit>
<counter>METHOD</counter>
<value>COVEREDRATIO</value>
<minimum>0.65</minimum>
</limit>
<limit>
<counter>CLASS</counter>
<value>MISSEDCOUNT</value>
<maximum>15</maximum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
<execution>
<id>jacoco-site</id>
<phase>install</phase>
Expand Down

0 comments on commit 2c54e24

Please sign in to comment.