handcraftedinthealps/code-coverage-checker

A code coverage checker for phpunit

0.2.5 2021-07-13 07:02 UTC

This package is auto-updated.

Last update: 2021-10-13 08:44:41 UTC


README

GitHub license GitHub tag (latest SemVer)

A code coverage checker for phpunit.

Installation

composer require handcraftedinthealps/code-coverage-checker --dev

Usage

Generate coverage

phpunit --coverage-php "Tests/reports/coverage.php"

Check coverage

vendor/bin/code-coverage-checker "Tests/reports/coverage.php" "line" "96.0"

Instead of line you can use class or method. You can also check only specific directories:

vendor/bin/code-coverage-checker "Tests/reports/coverage.php" "line" "96.0" "Directory/A" "Directory/B"

Example Output

!Exmaple code coverage checker output