michaelmoussa/php-coverage-checker

此包已被弃用且不再维护。未建议替代包。

自动代码覆盖率百分比检查

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 是一个用于自动检查代码覆盖率百分比的库。

初始提交 100% 是由 Ocramius 完成的: https://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/

安装

Composer!

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

使用

  1. 使用 PHPUnit 生成 XML 代码覆盖率
  2. 运行 vendor/bin/php-coverage-checker /path/to/clover.xml <minimum coverage percentage>
    • 例如,vendor/bin/php-coverage-checker build/clover.xml 100