PHPackages                             backendtea/watch-phpunit - 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. backendtea/watch-phpunit

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

backendtea/watch-phpunit
========================

Run tests for changed files

0.1.0(7y ago)951[1 issues](https://github.com/BackEndTea/watch-phpunit/issues)[1 PRs](https://github.com/BackEndTea/watch-phpunit/pulls)MITPHPPHP ^7.2

Since Jun 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/BackEndTea/watch-phpunit)[ Packagist](https://packagist.org/packages/backendtea/watch-phpunit)[ RSS](/packages/backendtea-watch-phpunit/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (9)Versions (4)Used By (0)

Watch Phpunit
=============

[](#watch-phpunit)

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

[](#installation)

```
composer require backendtea/watch-phpunit --dev

```

What is this
------------

[](#what-is-this)

The intention of this application is to 'watch' for file changes, and run the tests related to files that have been changed since the last git commit. This does mean that in its current form it needs to be in a git repository.

It figures out what classes depend on each other, and then runs the tests related to the changed files.

Usage
-----

[](#usage)

```
$ vendor/bin/watch-phpunit watch --src ./src --test ./tests

```

(src and tests are the default values, so if your folder structure matches this, you can run it like so:)

```
$ vendor/bin/watch-phpunit watch

```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~45 days

Total

2

Last Release

2562d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14289961?v=4)[Gert de Pagter](/maintainers/BackEndTea)[@BackEndTea](https://github.com/BackEndTea)

---

Top Contributors

[![BackEndTea](https://avatars.githubusercontent.com/u/14289961?v=4)](https://github.com/BackEndTea "BackEndTea (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/backendtea-watch-phpunit/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.4k](/packages/laravel-framework)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k17.0M1.1k](/packages/phpro-grumphp)[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.2k30.0M2.8k](/packages/infection-infection)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6943.5M449](/packages/drupal-core-recommended)

PHPackages © 2026

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