Skip to content
TextMate bundle support for Behat - PHP's BDD framework
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Commands
Preferences
Snippets
Support
Syntaxes
.gitignore
README.md
info.plist

README.md

Behat TextMate 2 Bundle

This TextMate bundle adds language support for the Cucumber story format. A few basic commands which allow interacting with feature files, and helpful tab completion.

Installation

Download

Simply download the latest Behat.tmbundle, and extract tar.gz archive into TextMates application support directory.

mkdir -p ~/Library/Application\ Support/Avian/Bundles
cd ~/Library/Application\ Support/Avian/Bundles
tar -zxf ~/Downloads/Behat.tmbundle.tar.gz

From Source

Simply clone repository into TextMate's bundle directory.

mkdir -p ~/Library/Application\ Support/Avian/Bundles
cd ~/Library/Application\ Support/Avian/Bundles
git clone git://github.com/emcconville/Behat.tmbundle

Commands

⌘R — Run current feature file

⌥⌘R — Run current scenario in current feature file

⌃H — Display defined language in feature context

⌃M — Print undefined language missing from feature context

⌃⇧V — Quick feature validation

⌃⇧H — Reformat & clean ("tidy") current document format

⌥⎋ — Suggested variables defined under "Example:" section

Tab Completion

Fe⇥ — becomes Feature:

Sc⇥ — becomes Scenario:

Sc⇥⇥ — becomes Scenario Outline:

Ex⇥ — becomes Examples:

Todo

  • TextMate friendly documentation
  • Rewrite all commands in native PHP
  • Basic composer.phar install command
  • Support for running tagged featured
  • Build all feature

History

  • 1.0 August 2013
  • Cucumber language syntax
  • Run single feature, or scenario
  • Tab & Escape Completion
  • Variable suggestion
  • Validated & Tidy commands (available only in composer.phar install)
You can’t perform that action at this time.