Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 948 Bytes

File metadata and controls

40 lines (29 loc) · 948 Bytes

Latest Stable Version Travis CI

PHPUnit coverage check tool

Installation

composer require --dev iro88/phpunit-coverage-check

Example usage

Check based on text output

# using stream
set -o pipefail && phpunit | phpunit-coverage-check --format=text 85.00

# ...with verbose mode to see phpunit output
set -o pipefail && phpunit | phpunit-coverage-check --format=text -v 85.00

# or file
phpunit-coverage-check --format=text 85.00 ./path/to/raport.txt

Check based on Clover XML file

phpunit-coverage-check --format=clover 85.00 ./path/to/clover.xml

Check based on Html report

phpunit-coverage-check --format=html 85.00 ./path/to/html/index.html

For more info

phpunit-coverage-check --help