On the XWiki project, we've been pursuing a strategy of failing our Maven build automatically whenever the test coverage of each Maven module is below a threshold indicated in the pom.xml of that module. We're using Jacoco to measure this local coverage.
We've been doing this for lots of years now and we've been quite happy about it. This has allowed us to raise the global test coverage of XWiki