PHPackages                             xp-forge/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. xp-forge/coverage

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

xp-forge/coverage
=================

Coverage for the XP Framework

v1.1.3(4y ago)224[1 issues](https://github.com/xp-forge/coverage/issues)BSD-3-ClausePHPPHP &gt;=7.0.0

Since Sep 14Pushed 4y ago2 watchersCompare

[ Source](https://github.com/xp-forge/coverage)[ Packagist](https://packagist.org/packages/xp-forge/coverage)[ Docs](http://xp-framework.net/)[ RSS](/packages/xp-forge-coverage/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

Code coverage for XP Framework unittests
========================================

[](#code-coverage-for-xp-framework-unittests)

[![Build status on GitHub](https://github.com/xp-forge/coverage/workflows/Tests/badge.svg)](https://github.com/xp-forge/coverage/actions)[![XP Framework Module](https://raw.githubusercontent.com/xp-framework/web/master/static/xp-framework-badge.png)](https://github.com/xp-framework/core)[![BSD Licence](https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png)](https://github.com/xp-framework/core/blob/master/LICENCE.md)[![Requires PHP 7.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_0plus.svg)](http://php.net/)[![Supports PHP 8.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-8_0plus.svg)](http://php.net/)[![Latest Stable Version](https://camo.githubusercontent.com/b2dad9b38ab11c24f4476755441b6ae9cd5782761be75b0c31b15d4886bb9f7f/68747470733a2f2f706f7365722e707567782e6f72672f78702d666f7267652f636f7665726167652f76657273696f6e2e706e67)](https://packagist.org/packages/xp-forge/coverage)

Code coverage for XP using XDebug. Based on Sebastian Bergmann's [Code coverage](https://github.com/sebastianbergmann/php-code-coverage) library.

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

[](#installation)

```
$ composer global require xp-forge/coverage
```

Next, make sure you have the [XDebug Zend extension](https://xdebug.org/download.php) loaded via `zend_extension`.

Usage
-----

[](#usage)

```
$ xp coverage -p src/main/php/unittest/ src/test/php
[.....................]

♥: 21/21 run (0 skipped), 21 succeeded, 0 failed
Memory used: 3839.68 kB (4050.93 kB peak)
Time taken: 0.246 seconds
Coverage: 84.72% lines covered (61/72)

┌──────────────────────────────────────────────────────┬─────────┬──────┐
│ Class                                                │ % Lines │  Not │
╞══════════════════════════════════════════════════════╪═════════╪══════╡
│ unittest.coverage.ClassName                          │ 100.00% │      │
│ unittest.coverage.CoverageDetails                    │ 100.00% │      │
│ unittest.coverage.CoverageListener                   │  60.71% │   11 │
└──────────────────────────────────────────────────────┴─────────┴──────┘
```

### HTML Report

[](#html-report)

An optional HTML report can be generated like this.

```
$ xp coverage -p src/main/php -r ./coverage-report src/test/php/
```

Use it in order to find out how to improve your coverage.

### Clover report

[](#clover-report)

A [clover](https://www.atlassian.com/software/clover) report can be generated as well.

```
$ xp coverage -p src/main/php -c clover.xml src/test/php/
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 95.6% 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 ~113 days

Recently: every ~141 days

Total

11

Last Release

1667d ago

Major Versions

v0.4.0 → v1.0.02019-10-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/07d18d882c8b4aaf3466432f64018214f2771eda333202175431ee7233795376?d=identicon)[thekid](/maintainers/thekid)

---

Top Contributors

[![thekid](https://avatars.githubusercontent.com/u/696742?v=4)](https://github.com/thekid "thekid (86 commits)")[![OlafSeng](https://avatars.githubusercontent.com/u/1488057?v=4)](https://github.com/OlafSeng "OlafSeng (4 commits)")

---

Tags

coveragecoverage-reportphp7php8phpunitunittestxdebugxp-frameworkmodulexp

### Embed Badge

![Health badge](/badges/xp-forge-coverage/health.svg)

```
[![Health](https://phpackages.com/badges/xp-forge-coverage/health.svg)](https://phpackages.com/packages/xp-forge-coverage)
```

###  Alternatives

[docler-labs/codeception-slim-module

Codeception Module for Slim framework.

13178.0k1](/packages/docler-labs-codeception-slim-module)

PHPackages © 2026

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