lencse/min-coverage

Check minimum coverage

v1.0.0 2019-03-08 21:28 UTC

This package is auto-updated.

Last update: 2024-11-09 14:29:50 UTC


README

PHP version Build Status

Install

Via Composer

composer require --dev lencse/min-coverage

Usage

Checking code coverage

# Create a Clover XML output of your project with PHPUnit
phpunit --coverage-clover build/logs/clover.xml
# Check code coverage
vendor/bin/min-coverage --min-coverage 95 --clover-file build/logs/clover.xml

Integrating into composer.json

{
    "scripts": {
        "test-all": [
            "phpunit --coverage-clover build/logs/clover.xml",
            "vendor/bin/min-coverage --min-coverage 95 --clover-file build/logs/clover.xml"
        ]
    }
}
composer test-all

Testing

composer test

License

The MIT License (MIT)