PHPackages                             addvilz/phpspec-cover - 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. addvilz/phpspec-cover

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

addvilz/phpspec-cover
=====================

Opinionated code coverage for PHPSpec

v0.1.4(10y ago)12.8k21Apache-2.0PHP

Since Mar 2Pushed 10y agoCompare

[ Source](https://github.com/Addvilz/phpspec-cover)[ Packagist](https://packagist.org/packages/addvilz/phpspec-cover)[ RSS](/packages/addvilz-phpspec-cover/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

Addvilz/phpspec-cover
=====================

[](#addvilzphpspec-cover)

WIP, but working.

About
-----

[](#about)

This is a slightly more opinionated version of PhpSpec code coverage library. It is designed to give you insight about spec you are currently working on, without interfering when PHPSpec is executed against full test suite (there is extension for that).

Features:

- Automatically disables itself for when you run suites (more than 1 specs, will be configurable in later versions);
- Only outputs reports in CLI;
- Outputs line-by-line source code with coverage information in CLI as well;
- Coverage report is only generated for class that the current spec is implemented against.

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

[](#installation)

`composer require addvilz/phpspec-cover`

Configuration
-------------

[](#configuration)

In your `phpspec.yml`:

```
extensions:
    - Addvilz\PhpSpecCover\Extension
phpspec_cover:
    max_specs: 1

```

### Credit where credit is due

[](#credit-where-credit-is-due)

[henrikbjorn/phpspec-code-coverage](https://github.com/henrikbjorn/PhpSpecCodeCoverageExtension) by [henrikbjorn](https://github.com/henrikbjorn). If you need a full fledged code coverage extension for PHPSpec, this is the one you should be looking at.

### License

[](#license)

Apache 2.0

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~3 days

Total

5

Last Release

3758d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/109aac4de31cd0ed15e840d5bd71cc57ed09aff1f69de81ee57a390d927a645e?d=identicon)[addvilz](/maintainers/addvilz)

---

Top Contributors

[![Addvilz](https://avatars.githubusercontent.com/u/1390347?v=4)](https://github.com/Addvilz "Addvilz (3 commits)")

### Embed Badge

![Health badge](/badges/addvilz-phpspec-cover/health.svg)

```
[![Health](https://phpackages.com/badges/addvilz-phpspec-cover/health.svg)](https://phpackages.com/packages/addvilz-phpspec-cover)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k940.0M150.3k](/packages/phpunit-phpunit)[brianium/paratest

Parallel testing for PHP

2.5k129.9M913](/packages/brianium-paratest)[codeception/codeception

All-in-one PHP Testing Framework

4.9k88.9M3.2k](/packages/codeception-codeception)[phpunit/phpcov

CLI frontend for php-code-coverage

23722.2M640](/packages/phpunit-phpcov)[facile-it/paraunit

paraunit

145802.1k15](/packages/facile-it-paraunit)[innmind/black-box

Test library

44190.0k112](/packages/innmind-black-box)

PHPackages © 2026

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