noregression/coverage-reporter

Print the total code coverage and exit with the right exit code

0.1.0 2015-12-17 21:34 UTC

This package is not auto-updated.

Last update: 2024-12-21 20:03:19 UTC


README

Prints out the code coverage and exits with an error if the code coverage is below the threshold.

The coverage is determined by a clover coverage report that can be generate by PHPUnit, just by adding the --coverage-clover option.

Installation

composer require noregression/coverage-reportor

Usage

bin/ci coverage:report /tmp/clover.xml -m 90

Replace /tmp/clover.xml with the path to your clover coverage report.

-m 90 means the minimum code coverage must be 90%.