Skip to content

TextMate bundle support for Behat - PHP's BDD framework

Notifications You must be signed in to change notification settings

emcconville/Behat.tmbundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published

Languages