pawel-grzona/teamcity-phpspec-extension

Makes TeamCity display phpspec execution results in real-time.

2.0.6 2015-04-23 10:04 UTC

This package is not auto-updated.

Last update: 2024-04-22 12:56:59 UTC


README

#PhpSpec extension for TeamCity CI

Formats PhpSpec output to make TeamCity display spec execution results in real-time.

Build Status Scrutinizer Code Quality Build Status

The 2.* version has been rebuilt from scratch to work with phpspec/phpspec rather than phpspec/phpspec2 and as such is not backward compatible.

Installation

In your composer.json:

{
    "require-dev": {
        "pawel-grzona/teamcity-phpspec-extension": "2.*"
    }
}

Configuration

In your phpspec.yml:

extensions:
    - PhpSpec\TeamCity\Extension

Usage

./phpspec run -f teamcity

TeamCity Configuration

  • 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.

Requirements

PHP 5.3+