PHPackages                             nimut/phpunit-merger - 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. nimut/phpunit-merger

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

nimut/phpunit-merger
====================

Merge multiple PHPUnit reports into one file

2.0.1(1y ago)511.8M↓33%34[2 issues](https://github.com/Nimut/phpunit-merger/issues)[5 PRs](https://github.com/Nimut/phpunit-merger/pulls)6GPL-2.0+PHPPHP ^8.0CI failing

Since Dec 17Pushed 1y ago3 watchersCompare

[ Source](https://github.com/Nimut/phpunit-merger)[ Packagist](https://packagist.org/packages/nimut/phpunit-merger)[ Docs](https://github.com/Nimut/phpunit-merger)[ RSS](/packages/nimut-phpunit-merger/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (7)Versions (18)Used By (6)

Merge multiple PHPUnit reports into one file
============================================

[](#merge-multiple-phpunit-reports-into-one-file)

[![Latest Stable Version](https://camo.githubusercontent.com/780d7deeb339c2c0e3112635c9224dea9b064842484fd206e87eee3062340955/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e696d75742f706870756e69742d6d65726765722e737667)](https://packagist.org/packages/nimut/phpunit-merger)[![StyleCI](https://camo.githubusercontent.com/dab7fea0cf7bd7bf176189dd54821b6d21a65531c4142eb15c58a53b9731b7bf/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131343534303933312f736869656c643f6272616e63683d6d61696e)](https://styleci.io/repos/114540931)[![GitHub Actions](https://github.com/Nimut/phpunit-merger/actions/workflows/test.yml/badge.svg?event=push)](https://github.com/Nimut/phpunit-merger/actions/workflows/test.yml/badge.svg?event=push)

Sometimes it is necessary to run multiple PHPUnit instances to execute all tests of a project. Unfortunately each run writes its own coverage and log reports. There is no support in PHPUnit to merge the reports of multiple runs.

This project provides two commands to merge coverage files as well as log files. It was designed to provide merged reports to e.g. SonarQube Scanner for further processing.

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

[](#installation)

Use [Composer](https://getcomposer.org/) to install the testing framework.

```
$ composer require --dev nimut/phpunit-merger
```

Composer will add the package as a dev requirement to your composer.json and install the package with its dependencies.

Usage
-----

[](#usage)

### Coverage

[](#coverage)

The coverage command merges files containing PHP\_CodeCoverage objects into one file in Clover XML format.

```
$ vendor/bin/phpunit-merger coverage  [--html=] []
```

**Arguments**

- `directory`: Directory containing one or multiple files with PHP\_CodeCoverage objects
- `file`: File where the merged result should be stored. Default: Standard output

**Options**

- `html`: Directory where the HTML report should be stored
- `lowUpperBound`: (optional) The lowUpperBound value to be used for HTML format
- `highLowerBound`: (optional) The highLowerBound value to be used for HTML format

### Log

[](#log)

The log command merges files in JUnit XML format into one file in JUnit XML format.

```
$ vendor/bin/phpunit-merger log
```

**Arguments**

- `directory`: Provides the directory containing one or multiple files in JUnit XML format
- `file`: File where the merged result should be stored

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity55

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 97.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 ~161 days

Recently: every ~232 days

Total

16

Last Release

698d ago

Major Versions

0.3.5 → 1.0.02020-08-18

1.x-dev → 2.0.02023-10-02

PHP version history (7 changes)0.1.0PHP &gt;=7.0.8 &lt; 7.3

0.2.0PHP &gt;=7.0.8 &lt; 7.4

0.3.2PHP &gt;=7.0.8 &lt; 7.5

0.3.4PHP &gt;=7.0.8 &lt;7.5

1.1.1PHP &gt;=7.0.8 &lt;7.5 || ~8.0.0

1.1.2PHP ^7.0.8 || ^8.0

2.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1453345?v=4)[Nicole Hummel](/maintainers/IchHabRecht)[@IchHabRecht](https://github.com/IchHabRecht)

---

Top Contributors

[![IchHabRecht](https://avatars.githubusercontent.com/u/1453345?v=4)](https://github.com/IchHabRecht "IchHabRecht (81 commits)")[![denizsokullu](https://avatars.githubusercontent.com/u/15388560?v=4)](https://github.com/denizsokullu "denizsokullu (1 commits)")[![tomasnorre](https://avatars.githubusercontent.com/u/1212481?v=4)](https://github.com/tomasnorre "tomasnorre (1 commits)")

---

Tags

phpunitcoverageTYPO3 CMSsonarqube

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nimut-phpunit-merger/health.svg)

```
[![Health](https://phpackages.com/badges/nimut-phpunit-merger/health.svg)](https://phpackages.com/packages/nimut-phpunit-merger)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k136.1M986](/packages/brianium-paratest)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k28.9M2.4k](/packages/infection-infection)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[phparkitect/phparkitect

Enforce architectural constraints in your PHP applications

9224.3M28](/packages/phparkitect-phparkitect)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[testo/testo

A lightweight PHP testing framework.

1959.3k55](/packages/testo-testo)

PHPackages © 2026

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