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(6y ago)95[1 PRs](https://github.com/BackEndTea/watch-phpunit/pulls)MITPHP ^7.2

Since Jun 26Compare

[ Source](https://github.com/BackEndTea/watch-phpunit)[ Packagist](https://packagist.org/packages/backendtea/watch-phpunit)[ RSS](/packages/backendtea-watch-phpunit/feed)WikiDiscussions Synced 3d 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

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

2517d ago

### Community

Maintainers

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

###  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.8k543.8M19.7k](/packages/laravel-framework)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/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.2k28.9M2.3k](/packages/infection-infection)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M24.6k](/packages/friendsofphp-php-cs-fixer)[drupal/core

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

21866.0M1.7k](/packages/drupal-core)

PHPackages © 2026

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