ancarda / coverage-enforcer
Enforces a minimum Code Coverage using a Coverage Clover XML file
1.0.1
2022-02-25 22:15 UTC
Requires
- php: ^7.3|^8.0
- ext-simplexml: *
- symfony/console: ^5.1|^6.0
Requires (Dev)
- composer/package-versions-deprecated: 1.11.99.1
- infection/infection: ^0.18.2
- phpstan/phpstan: ^0.12.82
- phpstan/phpstan-phpunit: ^0.12.18
- phpstan/phpstan-strict-rules: ^0.12.9
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-10-26 04:36:07 UTC
README
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>
Useful Links
- Source Code: https://git.sr.ht/~ancarda/coverage-enforcer
- Issue Tracker: https://todo.sr.ht/~ancarda/coverage-enforcer
- Mailing List: https://lists.sr.ht/~ancarda/coverage-enforcer