dev-master
9999999-devCLI extension for Behat
MIT
The Requires
test cli
CLI extension for Behat
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)
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)
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)
CLI extension for Behat
MIT
test cli