2017 © Pedro Peláez
 

behat-extension montserrat

CLI extension for Behat

image

davedevelopment/montserrat

CLI extension for Behat

  • Wednesday, July 4, 2012
  • by davedevelopment
  • Repository
  • 2 Watchers
  • 3 Stars
  • 109 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Montserrat

Build Status, (*1)

What is it?

Montserrat is to Behat what Aruba is to Cucumber. It's an extension for Command line applications written in any programming language. I'll be trying to add as much of aruba's functionality as I can on an ongoing basis., (*2)

Installation

The only documented way to install montserrat is with composer, (*3)

``` bash $ composer.phar require --dev davedevelopment/montserrat:*, (*4)


Usage ----- Add the extension to your `behat.yml` file: ``` yaml default: extensions: Behat\Montserrat\Extension:

In your FeatureContext constructor, add montserrat as a context (traits coming soon):, (*5)

``` php <?php public function __construct(array $parameters) { $this->useContext('montserrat', new Behat\Montserrat\Context\MontserratContext()); }, (*6)


Write your features: ``` gherkin Feature: ls In order to examine files in directory As a terminal user I need to list the files Scenario: ls shows files Given an empty file named "foo/bar" When I run `ls foo` Then the output should contain "bar"

To see a full list of available steps, see the features, or use behat's -dl switch:, (*7)

``` bash $ vendor/bin/behat -dl, (*8)

```, (*9)

Contributing

Fork it, branch it, check Aruba to see how they do it, implement it and pull request for great good., (*10)

Copyright (c) 2012 Dave Marshall. See LICENCE for further details, (*11)

The Versions

04/07 2012

dev-master

9999999-dev

CLI extension for Behat

  Sources   Download

MIT

The Requires

 

test cli