Skip to content

rsky/stagehand-testrunner

 
 

Repository files navigation

Stagehand_TestRunner – A continuous test runner for CLI

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. It has been designed for integration into Integrated Development Environments (IDEs), a developer can create an extension like MakeGood.

Features

  • Runs tests when a file is saved. (Autotest)
  • 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 XML format.
  • Prints detailed progress report.
  • Stops on the first failure or error.
  • Specifies the test file pattern.
  • Uses a YAML-based configuration file.
  • Supports CakePHP, CIUnit, PHPSpec, PHPUnit, and SimpleTest.

Installation

Stagehand_TestRunner can be installed using Composer or PEAR. The following sections explain each installation method.

Composer

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

{
    "require": {
        "piece/stagehand-testrunner": ">=3.4.0"
    }
}

Second, update your dependencies as the following:

composer update

PEAR

pear config-set auto_discover 1
pear install pear.piece-framework.com/stagehand_testrunner

Support

Visit our project page at http://piece-framework.com/projects/stagehand-testrunner.

Copyright

Copyright © 2005-2012 KUBO Atsuhiro and contributors, All rights reserved.

License

New BSD License

Packages

No packages published

Languages

  • PHP 99.5%
  • JavaScript 0.5%