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

ActiveLibrary

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 2mo ago

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 60% 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

3709d 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

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[friends-of-phpspec/phpspec-code-coverage

Generate Code Coverage reports for PhpSpec tests

202.6M125](/packages/friends-of-phpspec-phpspec-code-coverage)[innmind/black-box

Test library

44178.7k93](/packages/innmind-black-box)[rmiller/behat-spec

Behat and PhpSpec integration

5321.7k8](/packages/rmiller-behat-spec)

PHPackages © 2026

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