PHPackages                             leadersleague/phpunit-check-coverage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. leadersleague/phpunit-check-coverage

ActiveProject[Testing &amp; Quality](/categories/testing)

leadersleague/phpunit-check-coverage
====================================

Set a minimum acceptable code coverage in your pipeline

1.0.0(6y ago)261[1 PRs](https://github.com/leadersleague/phpunit-check-coverage/pulls)apache-2.0DockerfileCI passing

Since Jan 23Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/leadersleague/phpunit-check-coverage)[ Packagist](https://packagist.org/packages/leadersleague/phpunit-check-coverage)[ RSS](/packages/leadersleague-phpunit-check-coverage/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

PhpUnit Check Coverage
======================

[](#phpunit-check-coverage)

[![Build Status](https://camo.githubusercontent.com/0e05127633f6410440789fd9fc097b9ca3e5cbd2952fe633837087f8730e2558/68747470733a2f2f7472617669732d63692e636f6d2f6c6561646572736c65616775652f706870756e69742d636865636b2d636f7665726167652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/leadersleague/phpunit-check-coverage)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8655ae707b295d2f4c23cf3270774ec5006d594252912df199da647da9ced3c6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d65647a6f6e65722f706870756e69742d636865636b2d636f7665726167652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Medzoner/phpunit-check-coverage/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/e30e7459328e351d4b97e90097cd2526b9faa7be93b8507cf8b4670074126bea/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d65647a6f6e65722f706870756e69742d636865636b2d636f7665726167652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Medzoner/phpunit-check-coverage/?branch=master)[![GitHub license](https://camo.githubusercontent.com/a4ea4bae229a165399700653c5eb6ad41ba2d5fbf36af0e4ae6f5d4404710a9e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f532d6179616e6964652f466c75747465722d546963546163546f652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/leadersleague/phpunit-check-coverage/blob/master/LICENSE)

Short Description
-----------------

[](#short-description)

Set a minimum acceptable code coverage in your pipeline

Installation
------------

[](#installation)

With [composer](https://getcomposer.org), require:

`composer require leadersleague/phpunit-check-coverage`

Usage
-----

[](#usage)

Run unit test with specified coverage:

`php bin/phpunit -c phpunit.xml.dist --coverage-clover coverage.xml`

Run analyze of coverage report and success if coverage is more than the limit:

`php bin/coverage coverage.xml 80`

where 80 is the minimum coverage percent.

Developed &amp; Maintained by
-----------------------------

[](#developed--maintained-by)

[Mehdi Youb](https://github.com/Medzoner)

License
-------

[](#license)

[![GitHub license](https://camo.githubusercontent.com/a4ea4bae229a165399700653c5eb6ad41ba2d5fbf36af0e4ae6f5d4404710a9e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f532d6179616e6964652f466c75747465722d546963546163546f652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/leadersleague/phpunit-check-coverage/blob/master/LICENSE)

```

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance56

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2353d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11611667?v=4)[leadersleague](/maintainers/leadersleague)[@leadersleague](https://github.com/leadersleague)

---

Top Contributors

[![Medzoner](https://avatars.githubusercontent.com/u/11559347?v=4)](https://github.com/Medzoner "Medzoner (10 commits)")[![leadersleague](https://avatars.githubusercontent.com/u/11611667?v=4)](https://github.com/leadersleague "leadersleague (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/leadersleague-phpunit-check-coverage/health.svg)

```
[![Health](https://phpackages.com/badges/leadersleague-phpunit-check-coverage/health.svg)](https://phpackages.com/packages/leadersleague-phpunit-check-coverage)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)[gong023/assert_chain

enable you to use phpunit assert with method chain

1478.9k3](/packages/gong023-assert-chain)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
