aeliot-tm/phpunit-codecoverage-baseline

Script for the comparing of current code coverage with baseline.

Maintainers

Package info

github.com/Aeliot-Tm/phpunit-codecoverage-baseline

pkg:composer/aeliot-tm/phpunit-codecoverage-baseline

Statistics

Installs: 3 312

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 1

2.2.0 2026-06-16 20:26 UTC

README

WFS Code Climate maintainability

Package implements support of baseline for Clover repost of PHPUnit.

Installation

  1. Call command line script to install as dev-dependency via Composer:
    composer require --dev aeliot-tm/phpunit-codecoverage-baseline
  2. PHAR file

Usage

To get started:

  1. 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/
  2. Build baseline for clover report and commit into your project.

Regular using:

  1. Run comparing of current Clover report with the baseline. It is recommended to configure it on your GitHub or GitLab CI.
  2. Update your baseline time-to-time when you have progress with your code coverage.