iro88/phpunit-coverage-check

Tool to check phpunit code coverage

Installs: 13 771

Dependents: 1

Suggesters: 0

Security: 0

Stars: 5

Watchers: 2

Forks: 3

Open Issues: 0

pkg:composer/iro88/phpunit-coverage-check

1.0.4 2018-06-04 14:22 UTC

This package is not auto-updated.

Last update: 2025-10-16 23:36:47 UTC


README

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