vivait/scrutinizer-formatter

Creates a formatter for PHPSpec to display failed scenarios against files in Scrutinizer

1.0.2 2014-06-26 08:28 UTC

README

Creates a formatter for PHPSpec to display failed scenarios against files in Scrutinizer

Usage

In order to run your PHPSpec tests and have Scrutinizer show any failed scenarios against their appropriate spec files, add the following to your build config:

before_commands:
    - "composer install"
    
tools:
    custom_commands:
        -
            scope: file
            command: vendor/phpspec/phpspec/bin/phpspec run %pathname% -f scrutinizer --no-code-generation || true

Add the following to your phpspec.yml:

extensions:
    - Vivait\ScrutinizerFormatterExtension\Extension