Enforces a minimum Code Coverage using a Coverage Clover XML file

#6 PHP 8.1 support

~ancarda filed ticket on coverage-enforcer todo

1 year, 11 months ago

#4 Support symfony/console 6.x

~ancarda commented on coverage-enforcer todo

2 years ago

#Coverage Enforcer

License Latest Stable Version Total Downloads 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>