Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)

About

TextMate bundle support for Behat - PHP's BDD framework

Resources

Packages

No packages published

Languages