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.5(1mo ago)1868MITPHPPHP &gt;7.0 || &gt;8.0CI failing

Since Oct 3Pushed 1mo agoCompare

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

READMEChangelogDependencies (12)Versions (24)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

Maintenance90

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity78

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 ~149 days

Total

22

Last Release

45d 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 (56 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.4k51.0M7.7k](/packages/larastan-larastan)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M163](/packages/laravel-ai)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

721160.4k12](/packages/tallstackui-tallstackui)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[calebdw/larastan

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

15104.9k4](/packages/calebdw-larastan)

PHPackages © 2026

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