Releases: gosuperscript/phpunit-coverage
Releases · gosuperscript/phpunit-coverage
1.0.1
1.0.0
Features
-
PHPUnit extension compatible with PHPUnit 11, 12, and 13
-
Enforces a configurable minimum total line coverage (default 100%)
-
Configured via
phpunit.xml(.dist):<extensions> <bootstrap class="Superscript\PhpunitCoverage\Extension"> <parameter name="minimum" value="100"/> </bootstrap> </extensions>
-
Prints a colored
PASS/FAILbadge with the actual and required percentages after PHPUnit's coverage report -
Exits non-zero when coverage is below the minimum, when run with
--coverage-* -
Soft-passes locally when coverage is disabled; hard-fails on CI (detected via the
CIenv var)