PHPackages                             der-monozukurist/phpspec-coverage-test - 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. der-monozukurist/phpspec-coverage-test

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

der-monozukurist/phpspec-coverage-test
======================================

PhpSpec extension for testing code coverage

09PHPCI passing

Since Aug 24Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/DerMonozukurist/phpspec-coverage-test)[ Packagist](https://packagist.org/packages/der-monozukurist/phpspec-coverage-test)[ RSS](/packages/der-monozukurist-phpspec-coverage-test/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PhpSpec Code Coverage Test
==========================

[](#phpspec-code-coverage-test)

A [PhpSpec](http://www.phpspec.net/en/stable) extension for testing code coverage without the need for coverage report being generated first.

Usage
=====

[](#usage)

Config
------

[](#config)

Create a `phpspec.yaml` or `phpspec.yaml.dist` file containing the following.

```
# phpspec.yaml.dist
formatter.name: pretty
suites:
  default_suite:
    namespace: DerMonozukurist\PhpSpec\CoverageTest
    psr4_prefix: DerMonozukurist\PhpSpec\CoverageTest

extensions:
  FriendsOfPhpSpec\PhpSpec\CodeCoverage\CodeCoverageExtension:
    format:
      - html
    output:
      html: coverage

  DerMonozukurist\PhpSpec\CoverageTest\Extension:
    min_coverage: 100.0
```

Adjust these settings accordingly. Then `phpspec` on!

```
$ vendor/bin/phpspec run
```

Code Coverage Drivers
=====================

[](#code-coverage-drivers)

Pros and cons
-------------

[](#pros-and-cons)

DriverProsConspcovlighweight, therefore fastno dead code detectionxdebugfull coveragerelatively slow

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance44

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ad2491f622d745bd5e74bbdb7f875f02434aa8990cf1a9e951cf18e79813af0?d=identicon)[DerMonozukurist](/maintainers/DerMonozukurist)

---

Top Contributors

[![DerMonozukurist](https://avatars.githubusercontent.com/u/5939615?v=4)](https://github.com/DerMonozukurist "DerMonozukurist (21 commits)")

### Embed Badge

![Health badge](/badges/der-monozukurist-phpspec-coverage-test/health.svg)

```
[![Health](https://phpackages.com/badges/der-monozukurist-phpspec-coverage-test/health.svg)](https://phpackages.com/packages/der-monozukurist-phpspec-coverage-test)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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