Skip to content
TextMate bundle for Cucumber
Find file
#43 Compare This branch is 33 commits ahead, 8 commits behind bmabey:master.
Latest commit d515d5d May 14, 2012 @aslakhellesoy aslakhellesoy Merge pull request #33 from DoppioJP/master
I have adjusted the colour themes installation commands.
Failed to load latest commit information.
Commands Cleaning up various syntax Mar 24, 2010
Preferences Cleaning up various syntax Mar 24, 2010
Snippets Cleaning up various syntax Mar 24, 2010
color_themes Cleaning up various syntax Mar 24, 2010
support Updated i18n according to gherkin 2.4.0 Jun 9, 2011
.gitignore .rvmrc.sample and entry in .gitigore to ignore any attempts to commit… May 15, 2011
.rdebugrc Renamed Support folder to support folder! May 19, 2011
.rvmrc.sample Made specs run on 1.9.2. Removed dupe Rakefile. Jun 9, 2011
DEV_README.markdown Specs now run under RSpec 2. Jun 4, 2011
Gemfile Made specs run on 1.9.2. Removed dupe Rakefile. Jun 9, 2011
Gemfile.lock Updated to latest gherkin Oct 13, 2011
MIT-LICENSE.txt license Jan 22, 2009
README.markdown The colour themes installation instructions adjustment. If user follo… May 14, 2012
Rakefile Made specs run on 1.9.2. Removed dupe Rakefile. Jun 9, 2011
info.plist Added a 'cuke' snippet to create the Cucumber(<<-CUCUMBER) multiline … Oct 30, 2009
old.README.textile Merge with diabolo Jun 1, 2011


Textmate Bundle for Cucumber

This is the official TextMate bundle for Cucumber. Installation:

mkdir -p ~/Library/Application\ Support/TextMate/Bundles/
cd ~/Library/Application\ Support/TextMate/Bundles
git clone git:// Cucumber.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'

To install the color themes for the syntax highlighting, install them as follows:

open Cucumber.tmbundle/color_themes/Cobalt.tmTheme
open Cucumber.tmbundle/color_themes/Sunburst.tmTheme
open Cucumber.tmbundle/color_themes/Vibrant\ Ink.tmTheme

Adaptations of other themes is welcome!

If you are using RVM you can set up TextMate to use your RVM settings (read your .rvmrc file) by following these instructions.


  • Color highlighting for plain text features (supports all the languages that Cucumber does)
  • Snippets for plain text features and step files.
  • Auto-completion of steps in features (Alt+Escape)
  • Predefined completions (escape key) for common feature keywords.
  • Spellchecking turned on by default for the plain text features.
  • Switch between plain text feature and corresponding step matcher file. Shft+Ctrl+Down
  • Choose to go any file of opposite kind (step <-> feature) Shft+Ctrl+Up
  • Run a feature with HTML output.
  • Run a single scenario with HTML output.

Developing Hacking etc.

There is now a developers readme, please read this if you are hacking this bundle.


The Cucumber TM Bundle is currently maintained by Andrew Premdas.

  • Ben Mabey - Author/Main contributor (stuff)
  • Dr. Nic - Main contributor (Snippet and grammar updates, updated 'Run Focused Scenario' command, Autocomplete Step command, Scenario Folding, Choose Alternate File, and more stuff)
  • John Thornton - Co-Author of original RSpec Story Runner Bundle
  • Andre Foeken - "Original color syntax highlighting":
  • Tim Harper - Update Bundle Command, file detection bug fixes, go to step definition fixes, step grammar enhancements.
  • Aslak Hellesøy - Rake task improvement, snippet updates, Cucumber!
  • Pedro Visintin - Syntax fix
  • Joseph Wilk - Syntax extensions for 'Scenario Outline'
  • Sam Livingston-Gray - Align Table Cells command
  • Grant Hollingworth - Improved step grammar - regexps syntax highlighting, more precise string and comment scopes. Ignore includes for step completion.
  • Ben Wiseley - Fix for FileUtils bug
  • Ashley Moran - Improved Align Table Cells command
  • Jari Bakken - Syntax Highlighting improvements, include support for @tags.
  • Chris Hoffman - Improved Step Definition grammar to handle string interpolation when calling other steps.


  • Rethink Alternative-File Command to avoid encouraging "feature coupled steps.":
  • Navigation Commands
  • From a step definition be able to pull up a list of features using that step and to jump to them.
  • Automatically create template step file with pending steps based on the steps used in the feature.
  • Use Cucumber's built in functionality to do this and clean out the story bundle's way.
  • Snippets for tables.
  • Multi-language support for the snippets?
Something went wrong with that request. Please try again.