handcraftedinthealps/code-coverage-checker

A code coverage checker for phpunit

0.2.7 2023-11-29 22:02 UTC

This package is auto-updated.

Last update: 2024-10-29 23:49:25 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