PHPackages                             piece/stagehand-testrunner - 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. piece/stagehand-testrunner

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

piece/stagehand-testrunner
==========================

A continuous test runner for CLI

v4.2.0(10y ago)36141.8k↓50%12[4 issues](https://github.com/piece/stagehand-testrunner/issues)[1 PRs](https://github.com/piece/stagehand-testrunner/pulls)2BSD-2-ClausePHPPHP &gt;=5.3.3

Since Apr 12Pushed 10y ago4 watchersCompare

[ Source](https://github.com/piece/stagehand-testrunner)[ Packagist](https://packagist.org/packages/piece/stagehand-testrunner)[ Docs](https://github.com/piece/stagehand-testrunner/wiki)[ RSS](/packages/piece-stagehand-testrunner/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (11)Versions (19)Used By (2)

Stagehand\_TestRunner
=====================

[](#stagehand_testrunner)

A continuous test runner for CLI

[![Total Downloads](https://camo.githubusercontent.com/90f7a3b850f0426c78cc2c839f1fe17eb8cb850e05252a0a272b29a093b1a42b/68747470733a2f2f706f7365722e707567782e6f72672f70696563652f737461676568616e642d7465737472756e6e65722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/piece/stagehand-testrunner)[![Latest Stable Version](https://camo.githubusercontent.com/1f724da8cac5cdf6936c6d800ac6af6707877a0ad98d360e00adeb8dbcf50275/68747470733a2f2f706f7365722e707567782e6f72672f70696563652f737461676568616e642d7465737472756e6e65722f762f737461626c652e706e67)](https://packagist.org/packages/piece/stagehand-testrunner)[![Latest Unstable Version](https://camo.githubusercontent.com/74b17db561a68917e27ae9711fc0b86f69eda1baf9dfa7044642cb1c8906d871/68747470733a2f2f706f7365722e707567782e6f72672f70696563652f737461676568616e642d7465737472756e6e65722f762f756e737461626c652e706e67)](https://packagist.org/packages/piece/stagehand-testrunner)[![Build Status](https://camo.githubusercontent.com/149639f8b12ba0614930883c6c8d61a0f2487f114301c3511e6b0fd760408111/68747470733a2f2f7472617669732d63692e6f72672f70696563652f737461676568616e642d7465737472756e6e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/piece/stagehand-testrunner)

`Stagehand_TestRunner` is a continuous test runner to run unit tests in CLI.

It makes unit testing in a local environment much easier and comfortable. Additionally it can easily be integrated with a continuous integration server like [Jenkins](http://jenkins-ci.org/). It has been designed for integration into Integrated Development Environments (IDEs), a developer can create an extension like [MakeGood](http://piece-framework.com/projects/makegood).

[![Continuous Testing and Notification](https://github.com/piece/stagehand-testrunner/wiki/images/continuous_testing_and_notification_800.png)](https://github.com/piece/stagehand-testrunner/wiki/images/continuous_testing_and_notification_800.png)

Features
--------

[](#features)

- Runs tests when a file is saved. (**Continuous Testing**)
- Runs tests in the specified directory.
- Runs tests in the specified file.
- Runs only the specified tests in the specified file.
- Runs only the tests in the specified classes.
- Colors the output.
- Preloads the specified PHP script before running tests.
- Notifies test results.
- Logs test results into the specified file in the [JUnit](http://www.junit.org/) XML format.
- Prints detailed progress report.
- Stops on the first failure or error.
- Specifies the test file pattern.
- Uses a YAML-based configuration file.
- Runs the phpunit command via the testrunner command.
- Supports [PHPUnit](http://phpunit.de/).

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

[](#installation)

`Stagehand_TestRunner` can be installed using [Composer](http://getcomposer.org/).

First, add the dependency to `piece/stagehand-testrunner` into your `composer.json` file as the following:

Stable version:

```
composer require piece/stagehand-testrunner "4.2.*"

```

Development version:

```
composer require piece/stagehand-testrunner "~4.3@dev"

```

Second, compile `Stagehand_TestRunner` for your environment as the following:

```
vendor/bin/testrunner compile
```

Support
-------

[](#support)

If you find a bug or have a question, or want to request a feature, create an issue or pull request for it on [Issues](https://github.com/piece/stagehand-testrunner/issues).

Copyright
---------

[](#copyright)

Copyright (c) 2005-2016 KUBO Atsuhiro and [contributors](https://github.com/piece/stagehand-testrunner/wiki/Contributors), All rights reserved.

License
-------

[](#license)

[The BSD 2-Clause License](http://opensource.org/licenses/BSD-2-Clause)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 98.8% 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 ~85 days

Recently: every ~167 days

Total

18

Last Release

3695d ago

Major Versions

3.0.x-dev → v4.0.02014-06-06

PHP version history (2 changes)3.0.0PHP &gt;=5.3.2

v4.0.0PHP &gt;=5.3.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52985?v=4)[Atsuhiro Kubo](/maintainers/iteman)[@iteman](https://github.com/iteman)

---

Top Contributors

[![iteman](https://avatars.githubusercontent.com/u/52985?v=4)](https://github.com/iteman "iteman (1293 commits)")[![kumatch](https://avatars.githubusercontent.com/u/30500?v=4)](https://github.com/kumatch "kumatch (6 commits)")[![ngyuki](https://avatars.githubusercontent.com/u/1871654?v=4)](https://github.com/ngyuki "ngyuki (4 commits)")[![nojimage](https://avatars.githubusercontent.com/u/100564?v=4)](https://github.com/nojimage "nojimage (1 commits)")[![rsky](https://avatars.githubusercontent.com/u/120796?v=4)](https://github.com/rsky "rsky (1 commits)")[![evalphobia](https://avatars.githubusercontent.com/u/2827521?v=4)](https://github.com/evalphobia "evalphobia (1 commits)")[![shishi](https://avatars.githubusercontent.com/u/341746?v=4)](https://github.com/shishi "shishi (1 commits)")[![frzme](https://avatars.githubusercontent.com/u/424560?v=4)](https://github.com/frzme "frzme (1 commits)")[![maikgreubel](https://avatars.githubusercontent.com/u/745973?v=4)](https://github.com/maikgreubel "maikgreubel (1 commits)")

---

Tags

testingcli

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/piece-stagehand-testrunner/health.svg)

```
[![Health](https://phpackages.com/badges/piece-stagehand-testrunner/health.svg)](https://phpackages.com/packages/piece-stagehand-testrunner)
```

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[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.2k26.2M1.8k](/packages/infection-infection)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)

PHPackages © 2026

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