Package implements support of baseline for Clover repost of PHPUnit.
Call command line script to install:
composer require --dev aeliot-tm/phpunit-codecoverage-baseline
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.