Git Product home page Git Product logo

phpspecrunextension's Introduction

PhpSpecRunExtension

Scrutinizer Code Quality Build Status

PhpSpec extension that adds running run command after describe command

Installation

This extension requires:

  • PhpSpec 2.1+
  • PHP 5.4+

It will only work with latest PhpSpec 2.1 which is not yet a stable release as it relies on console events that were only recently added. In order to be able to include this in BehatSpec without forcing that to need 2.1 for the time being you need to force the PhpSpec version and not rely on this extension's dependencies

The easiest way to install it is to use Composer

$ composer require --dev rmiller/error-extension:~0.1

Activate the extension by specifying its class in your phpspec.yml:

# phpspec.yml
default:
  # ...
  extensions:
    - RMiller\PhpSpecRunExtension\PhpSpecRunExtension

It defaults to bin/phpspec for the path of phpspec and to run after the describe command. These can be overridden as follows:

# phpspec.yml
default:
  # ...
  extensions:
    -RMiller\PhpSpecRunExtension\PhpSpecRunExtension
  rerunner:
    path: vendor/bin/phpspec
    commands: [describe, exemplify]
    config: path/to/phpspec.yml #optional

This will now also execute the run command after the exemplify command added by the ExemplifyExtension.

phpspecrunextension's People

Contributors

richardmiller-zz avatar jakubzapletal avatar scrutinizer-auto-fixer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.