Download the PHP package andrey-tech/phpunit-cobertura-comparator-php without Composer
On this page you can find all versions of the php package andrey-tech/phpunit-cobertura-comparator-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andrey-tech/phpunit-cobertura-comparator-php
More information about andrey-tech/phpunit-cobertura-comparator-php
Files in andrey-tech/phpunit-cobertura-comparator-php
Package phpunit-cobertura-comparator-php
Short Description A lightweight CLI tool to track PHPUnit code coverage regressions using Cobertura reports
License MIT
Homepage https://github.com/andrey-tech/phpunit-cobertura-comparator-php
Informations about the package phpunit-cobertura-comparator-php
PHPUnit Cobertura Comparator
PHPUnit Cobertura Comparator is a lightweight CLI tool to track PHPUnit code coverage regressions using Cobertura reports.
Installation
The tool requires PHP version 8.3 or higher.
Install via Composer:
Usage
The command line:
The optional command line arguments:
--no-colors— disable ANSI color output;--ignore-branch-rate— ignore branch-rate in a Cobertura XML file.
An example command line:
An example of the console output:
Columns in the table:
Method— the method name;Status— the status of the method or class (old,new,del);Line coverage, %— the line coverage of the method or class (old->new);Branch coverage, %— the branch coverage of the method or class (old->new).
The tool shows line and branch coverage, measured by PHP Unit, in ANSI colors:
| Color | Line or branch coverage | Status |
|---|---|---|
red |
The coverage has decreased | — |
yellow |
— | Deleted |
green |
The coverage has increased | New |
white |
The coverage has not changed | Old |
Exit codes
The tool defines different exit codes:
| Code | Description |
|---|---|
| 0 | Everything worked as expected and no coverage regressions found |
| 1 | An error/exception occurred which has interrupted tool during execution |
| 2 | Everything worked as expected but coverage regressions found |
Authors and Maintainers
The author and maintainer of PHPUnit Cobertura Comparator is andrey-tech.
License
This tool is licensed under the MIT license.
All versions of phpunit-cobertura-comparator-php with dependencies
ext-simplexml Version *
ext-sqlite3 Version *
ext-pdo Version *
symfony/console Version ^5.4 || ^6.4 || ^7.3 || ^8.0
symfony/yaml Version ^5.4 || ^6.4 || ^7.3 || ^8.0