Formats PhpSpec output to make TeamCity display spec execution results in real-time.
Add the following to your composer.json config:
"require": {
"pawel-grzona/teamcity-phpspec-extension": "dev-master"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/dimitri-koenig/teamcity-phpspec-extension"
}
],
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 7.1+