Download the PHP package sergiynezbritskiy/coverage-checker without Composer
On this page you can find all versions of the php package sergiynezbritskiy/coverage-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sergiynezbritskiy/coverage-checker
More information about sergiynezbritskiy/coverage-checker
Files in sergiynezbritskiy/coverage-checker
Download sergiynezbritskiy/coverage-checker
More information about sergiynezbritskiy/coverage-checker
Files in sergiynezbritskiy/coverage-checker
Vendor sergiynezbritskiy
Package coverage-checker
Short Description CLI tool to verify that test coverage in a clover report meets a minimal threshold.
License MIT
Package coverage-checker
Short Description CLI tool to verify that test coverage in a clover report meets a minimal threshold.
License MIT
Please rate this library. Is it a good library?
Informations about the package coverage-checker
coverage-checker
CLI tool to verify that test coverage in a clover report meets a minimal threshold. Intended to be used in CI/CD pipelines to fail the build when coverage drops below the accepted level.
Installation
Usage
where:
path/to/clover.xml— path to a test coverage report in clover format (e.g. produced byphpunit --coverage-clover=...);min-coverage— the minimal allowed coverage percentage, a number between 0 and 100.
Example:
In CI/CD environments where ANSI colors are not desired, disable them via the ANSI
environment variable:
Exit codes
| Code | Meaning |
|---|---|
| 0 | Coverage meets or exceeds the threshold |
| 1 | Coverage is below the threshold |
| 2 | Usage error (invalid arguments) or invalid/empty coverage report |
Development
composer run all runs codesniffer, mess detector, phpstan and the phpunit test suite
with coverage (reports are written to var/reports/).
All versions of coverage-checker with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
ext-libxml Version *
ext-simplexml Version *
ext-libxml Version *
ext-simplexml Version *
The package sergiynezbritskiy/coverage-checker contains the following files
Loading the files please wait ...