A test runner for Test Driven Development¶
English | 日本語
Stagehand_TestRunner provides a test runner to run unit tests. Stagehand_TestRunner strongly supports Test Driven Development (TDD) by various features.
Features¶
- 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.
- Monitors for changes in the specified directories and run tests when changes are detected.
- Notifies test results.
- Logs test results into the specified file in the JUnit XML format.
- Prints detailed progress report.
- Stops on the first failure or error.
- Specifies the test file pattern.
- Supports PHPUnit, CIUnit, SimpleTest, CakePHP, PHPT, and PHPSpec.
Requirements¶
- PHP 5.2.0 or greater
- PEAR 1.4.3 or greater
- Stagehand_AlterationMonitor 1.0.0 or greater
- Stagehand_Autoload 0.4.0 or greater
- Stagehand_CLIController 1.0.1 or greater
- Stagehand_DirectoryScanner 1.0.0 or greater
- Stagehand_LegacyError 1.0.2 or greater
- (optional) Console_Color 1.0.2 or greater
- (optional) PHPSpec 0.2.3 or greater
- (optional) PHPUnit 3.4.1 or greater
- (optional) SimpleTest 1.0.1 or greater
- (optional) CakePHP 1.3 or 1.2
- (optional) CIUnit v0.17
- pcre
- SPL
- (optional) dom
- (optional) mbstring
- (optional) Growl for Windows (Windows), Growl (Mac OS X), the libnotify-bin package (in Ubuntu)
Installation¶
| Package | Version | Stability | Release Date | License | |
|---|---|---|---|---|---|
| Stagehand_TestRunner | 2.20.0 | stable | 2011-10-18 | New BSD License | Release Notes |
Stagehand_TestRunner can be installed directly using our PEAR channel pear.piece-framework.com. The following is a basic installation:
pear channel-discover pear.piece-framework.com pear install piece/stagehand_testrunner
Documentation¶
Source¶
Browse Source Code¶
Git Access¶
git clone git://github.com/piece/stagehand-testrunner.git
