In our company we have many legacy projects where the introduction of ‘code coverage’ is difficult. Especially at the beginning it is hard for the projects to reach the 80% goal for new code.
An alternative quality gate criteria could be to say:
- with every code change coverage should get not worse
- team have the goal to improve coverage every quarter 5%
Looking to the stock exchange there is something similar: ‘Trailing Stop Orders’: The limit follows automatically increasing values. Quality Gate is failing only if the values is going below last maximum.
Stock exchange sample: