#PhpSpec extension for TeamCity CI
Formats PhpSpec output to make TeamCity display spec execution results in real-time.
The 2.* version has been rebuilt from scratch to work with phpspec/phpspec rather than phpspec/phpspec2 and as such is not backward compatible.
In your composer.json:
{
"require-dev": {
"pawel-grzona/teamcity-phpspec-extension": "2.*"
}
}
In your phpspec.yml:
extensions:
- PhpSpec\TeamCity\Extension
./phpspec run -f teamcity
- Add a Build Step
- Runner Type: Command line
- Run: Custom Script
- Custom Script:
/path/to/phpspec run -f teamcity
- phpSpec tests will be included in the overall test count along with phpUnit, etc.
PHP 5.3+