aeliot-tm / phpunit-codecoverage-baseline
Script for the comparing of current code coverage with baseline.
Installs: 2 066
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 7
Requires
- php: ^7.1|^8.0
- ext-json: *
- ext-simplexml: *
- symfony/console: ^3.4|^4.0|^5.0|^6.0
Requires (Dev)
- dg/bypass-finals: ^1.4
- phpstan/extension-installer: *
- phpstan/phpstan: *
- phpstan/phpstan-phpunit: *
- phpunit/phpunit: ^7.5|^9.5
Suggests
- phpunit/phpunit: PHPUnit must be used to generate code coverage report.
This package is auto-updated.
Last update: 2024-11-19 22:55:32 UTC
README
Package implements support of baseline for Clover repost of PHPUnit.
Installation
Call command line script to install:
composer require --dev aeliot-tm/phpunit-codecoverage-baseline
Usage
To get started:
- Run PHPUnit with the switched on Clover report in xml config file
or with command-line options.
phpunit --coverage-clover 'build/coverage/clover.xml' tests/
- Build baseline for clover report and commit into your project.
Regular using:
- Run comparing of current Clover report with the baseline. It is recommended to configure it on your GitHub or GitLab CI.
- Update your baseline time-to-time when you have progress with your code coverage.