Enforces a minimum Code Coverage using a Coverage Clover XML file

532de17 Make CI config more portable

2 months ago

1bb3861 CI improvements and fixes

2 months ago

#Coverage Enforcer

builds.sr.ht status

Coverage Enforcer is a tiny command line tool that enforces code coverage metrics. Intended to be used in Continuous Integration (CI) systems to prevent code coverage from falling to unacceptable levels.

Pull down with composer:

composer require --dev ancarda/coverage-enforcer

Then just invoke like so:

vendor/bin/enforce-coverage --minStmtCov=100 <path to clover XML file>