berrygoudswaard/coverage-reporter

This package is abandoned and no longer maintained. The author suggests using the noregression/coverage-reporter package instead.

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: 2022-02-01 12:47:30 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%.