PHPackages                             previousnext/phpunit-splitter - 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. previousnext/phpunit-splitter

Abandoned → [dave-liddament/test-splitter](/?search=dave-liddament%2Ftest-splitter)Project[Testing &amp; Quality](/categories/testing)

previousnext/phpunit-splitter
=============================

Splits phpunit tests

0.3.0(9mo ago)21.3k[1 issues](https://github.com/previousnext/phpunit-splitter/issues)GPL-2.0-or-laterPHPPHP ^8.1CI passing

Since Dec 16Pushed 9mo ago4 watchersCompare

[ Source](https://github.com/previousnext/phpunit-splitter)[ Packagist](https://packagist.org/packages/previousnext/phpunit-splitter)[ RSS](/packages/previousnext-phpunit-splitter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (6)Used By (0)

PHPUnit Test Splitter
=====================

[](#phpunit-test-splitter)

Allows you to split your PHPUnit tests by timings.

Usage
-----

[](#usage)

Generate a timing file:

```
phpunit --cache-result --results-files=.phpunit.cache/test-results*
```

List your tests:

```
phpunit --list-tests-xml=tests.xml
```

This generates an XML file with a list of tests. You can add `--testsuite` to limit the tests to a specific suite.

Split the tests in 2 groups and get the first group (0):

```
phpunit-splitter 2 0 --tests-file=tests.xml --results-files=.phpunit.cache/test-results*
```

Split the tests in 4 groups and get the third group (2):

```
phpunit-splitter 4 2 --tests-file=tests.xml --results-files=.phpunit.cache/test-results*
```

Pass the results to PHPUnit:

```
./phpunit-splitter 2 0 --tests-file=tests/fixtures/tests.xml --results-files=.phpunit.cache/test-results* | xargs ./vendor/bin/phpunit
done
```

Output the test list as JSON:

```
./phpunit-splitter 2 0 --json --tests-file=tests/fixtures/tests.xml --results-files=.phpunit.cache/test-results*
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance48

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~119 days

Total

3

Last Release

279d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6132?v=4)[Kim Pepper](/maintainers/kimpepper)[@kimpepper](https://github.com/kimpepper)

![](https://www.gravatar.com/avatar/92d36d6b96f06f66b047afc697b73f2a66df922a642e714d380fb68d0458da40?d=identicon)[skpr](/maintainers/skpr)

![](https://www.gravatar.com/avatar/2ffbd54d4eb9c0e90863e4a328b87d2f88c8993070d266310ceaf4b6844e11ce?d=identicon)[mstrelan](/maintainers/mstrelan)

---

Top Contributors

[![kimpepper](https://avatars.githubusercontent.com/u/6132?v=4)](https://github.com/kimpepper "kimpepper (12 commits)")[![mstrelan](https://avatars.githubusercontent.com/u/665110?v=4)](https://github.com/mstrelan "mstrelan (2 commits)")

---

Tags

php-libtestingphpunit

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/previousnext-phpunit-splitter/health.svg)

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

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[facile-it/paraunit

paraunit

146721.6k11](/packages/facile-it-paraunit)[lmc/steward

Steward - makes Selenium WebDriver + PHPUnit testing easy and robust

222163.1k1](/packages/lmc-steward)[robiningelbrecht/phpunit-coverage-tools

PHPUnit coverage tools

1783.0k34](/packages/robiningelbrecht-phpunit-coverage-tools)[ockcyp/covers-validator

Validates @covers tags in PHPUnit tests

21198.0k82](/packages/ockcyp-covers-validator)

PHPackages © 2026

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