I am using Jacoco with Maven builder for my project's code coverage. I have configured rules around maximum missed classes / methods and minimum line coverage failing which maven build fails (sample below).
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>CLASS</counter>
<value>MISSEDCOUNT</value>
<maximum>90</maximum>
</limit>
</limits>
</rule>
</rules>
I am trying to figure out if there is a mechanism using which these rules get automatically updated if more test cases are added (or more methods are covered using same tests).
Let's say I added test cases for 5 more classes, the maximum value is above rule should be changed to 85.