PHPackages                             stekel/autotest - 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. stekel/autotest

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

stekel/autotest
===============

Automatically run phpunit after saving one of your project files.

v2.0.3(1mo ago)0865MITPHPPHP &gt;7.0 || &gt;8.0CI failing

Since Oct 3Pushed 2d agoCompare

[ Source](https://github.com/stekel/autotest)[ Packagist](https://packagist.org/packages/stekel/autotest)[ RSS](/packages/stekel-autotest/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (8)Versions (22)Used By (0)

AutoTest
========

[](#autotest)

Automatically run unit tests when a project file is saved.

Requirements
------------

[](#requirements)

- PHP &gt;= 7
- PHPUnit &gt;= 6 or Pest &gt; 2
- entr &gt;= 3.4

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

[](#installation)

- Install entr

```
sudo apt-get install entr
```

- Require it with Composer:

```
composer global require stekel/autotest
```

The `autotest` executable should now be located in the `~/.composer/vendor/bin/` directory.

- Add this directory to your PATH in your ~/.bash\_profile or ~/.bashrc

```
export PATH=~/.composer/vendor/bin:$PATH
```

Usage
-----

[](#usage)

### Laravel

[](#laravel)

Run the following command from the root of a Laravel application

```
php artisan stekel:autotest
```

Note: this will use the local phpunit `./vendor/bin/phpunit`

### Generic

[](#generic)

Run the following command from the root of a composer project with phpunit

```
autotest
```

Note: this will use the global phpunit `~/.composer/vendor/bin/phpunit`

Your tests should run one time, after that `autotest` will run your tests every time a file within your project is saved. No more switching between your editor and a terminal.

Arguments &amp; Flags
---------------------

[](#arguments--flags)

`-f` Filter: passed to phpunit as the --filter parameter

`-g` Group: passed to phpunit as the --group parameter

`-d` Directory: passed to phpunit as the directory argument, prepends './tests/'

`--coverage` Code Coverage: pending phpunit is configured to output code coverage reports, removes the `--no-coverage` flag

`--localphpunit` Force Local phpunit: forces the use of `./vendor/bin/phpunit` as the phpunit location

`--globalphpunit` Force Global phpunit: forces the use of `~/.composer/vendor/bin/phpunit` as the phpunit location

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance95

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~162 days

Recently: every ~145 days

Total

20

Last Release

52d ago

Major Versions

v0.9 → v1.02020-06-03

v1.3.3 → v2.0.02024-09-11

PHP version history (3 changes)v0.1PHP ^7.0

v0.7PHP &gt;7.0

v1.2PHP &gt;7.0 || &gt;8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13273514?v=4)[Stephen Keller](/maintainers/stekel)[@stekel](https://github.com/stekel)

---

Top Contributors

[![stekel](https://avatars.githubusercontent.com/u/13273514?v=4)](https://github.com/stekel "stekel (54 commits)")

---

Tags

entrlaravelphpunit

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/stekel-autotest/health.svg)

```
[![Health](https://phpackages.com/badges/stekel-autotest/health.svg)](https://phpackages.com/packages/stekel-autotest)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[mpociot/laravel-test-factory-helper

Generate Laravel test factories from your existing models

933635.2k2](/packages/mpociot-laravel-test-factory-helper)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[calebdw/larastan-livewire

A Larastan / PHPStan extension for Livewire.

43482.4k3](/packages/calebdw-larastan-livewire)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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