I am looking for a solution to use jacoco:check in a multi module maven project.
The requirement is to put a threshold of 80% coverage check on the entire application instead of individual module as we have Integration tests as well which are written across module.
Right now, it fails the build even if the check for one module is not above the threshold value. Configuration of jacoco check in parent pom.xml:
<execution>
<phase>verify</phase>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>LINE</counter>
<minimum>0.80</minimum>
<value>COVEREDRATIO</value>
</limit>
</limits>
</rule>
</rules>
</configuration>
<goals>
<goal>check</goal>
</goals>
<id>jacoco-check</id>
</execution>