davedevelopment/montserrat

CLI extension for Behat

Maintainers

👁 davedevelopment

Package info

github.com/davedevelopment/montserrat

Type:behat-extension

pkg:composer/davedevelopment/montserrat

Statistics

Installs: 116

Dependents: 1

Suggesters: 0

Stars: 3

Open Issues: 0

dev-master 2012-07-04 10:00 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 5ef2fd2de68ccdddd9913801c8c5116570473c4c

  • Dave Marshall <dave.marshall.woop@atstsolutions.co.uk>

clitest

This package is auto-updated.

Last update: 2026-06-06 14:30:43 UTC


README

👁 Build Status

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.

Installation

The only documented way to install montserrat is with composer

$ composer.phar require --dev davedevelopment/montserrat:* 

Usage

Add the extension to your behat.yml file:

default:
 extensions:
 Behat\Montserrat\Extension:

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

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

Write your features:

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:

$ vendor/bin/behat -dl

Contributing

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

Copyright

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