Download the PHP package gosuperscript/phpunit-coverage without Composer
On this page you can find all versions of the php package gosuperscript/phpunit-coverage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gosuperscript/phpunit-coverage
More information about gosuperscript/phpunit-coverage
Files in gosuperscript/phpunit-coverage
Download gosuperscript/phpunit-coverage
More information about gosuperscript/phpunit-coverage
Files in gosuperscript/phpunit-coverage
Vendor gosuperscript
Package phpunit-coverage
Short Description PHPUnit extension that fails the test run when total code coverage drops below a configurable minimum.
License MIT
Package phpunit-coverage
Short Description PHPUnit extension that fails the test run when total code coverage drops below a configurable minimum.
License MIT
Please rate this library. Is it a good library?
Informations about the package phpunit-coverage
phpunit-coverage
A PHPUnit extension that fails the test run when total line coverage drops below a configured minimum. Compatible with PHPUnit 11, 12 and 13.
Install
Configure
Add the extension to your phpunit.xml (or phpunit.xml.dist):
| Parameter | Default | Description |
|---|---|---|
minimum |
100 |
Minimum total line coverage percentage required to pass. |
Behaviour
The extension only checks coverage when PHPUnit has actually collected it — that is, when you run PHPUnit with a coverage report flag (e.g. --coverage-text, --coverage-clover, --coverage-html) and a coverage driver (Xdebug or PCOV) is installed.
- Coverage enabled, below minimum: the run fails with exit code
1and a message printed to STDERR. - Coverage enabled, at or above minimum: the run continues normally.
- Coverage disabled, running locally: a PHPUnit warning is emitted, the run continues. Lets you run
vendor/bin/phpunitwithout coverage during development. - Coverage disabled, running on CI: the run fails with exit code
1. CI is detected via theCIenvironment variable (set by GitHub Actions, GitLab CI, CircleCI, Travis, Buildkite, and others).
Run
License
MIT
All versions of phpunit-coverage with dependencies
PHP Build Version
Package Version
The package gosuperscript/phpunit-coverage contains the following files
Loading the files please wait ...