michaelmoussa/php-coverage-checker

This package is abandoned and no longer maintained. No replacement package was suggested.

Automated code coverage percentage checking

1.1.0 2015-09-30 21:02 UTC

This package is not auto-updated.

Last update: 2023-12-09 14:33:12 UTC


README

php-coverage-checker is a library for automated code coverage percentage checking.

Initial commit is 100% the work of Ocramius: https://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/

Installation

Composer!

composer require --dev michaelmoussa/php-coverage-checker

Usage

  1. Generate XML Code Coverage using PHPUnit
  2. Run vendor/bin/php-coverage-checker /path/to/clover.xml <minimum coverage percentage>
    • e.g. vendor/bin/php-coverage-checker build/clover.xml 100