michaelmoussa/php-coverage-checker

Automated code coverage percentage checking

1.1.0 2015-09-30 21:02 UTC

This package is not auto-updated.

Last update: 2021-11-27 03:00:42 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