Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Tool Support

bmabey edited this page Sep 13, 2010 · 34 revisions

Several tools recognize Gherkin source (feature files) in a similar way to the Gherkin library itself.

With full i18n support

All of the tools below support all of the i18n translations of the Gherkin grammar.

Editors

Syntax highlighters

Cucumber “cousins”

Without full i18n support

These tools don’t (yet) support all of Gherkin’s 40 translations. (It would be easy for their maintainers to make them support it – see Tool Developers below).

Editors

Tool Developers

If you’re developing a tool that understands Gherkin, please make it i18n aware. The best way to do this is to use code generation like some of the tools above. This lets you easily update your tool when Gherkin gets a new language or a synonym is added to an existing one. All it takes is a little bit of Ruby/Rake and an Erb template that uses Gherkin::I18n.keyword_regexp to generate a Python, Java, C# or whatever file that is part of your tool.

Some tool developers have built-in handling of fragments like In order to, As a and I want. (This is a common narrative style for feature headers). We recommend that you do not try to recognize or highlight this. People should be feee to choose the wording they want. Moreover, we don’t have translations of those fragments, and even if we did, this style is too prescriptive. Gherkin lets you formulate feature narratives how you want, and so whould related tools.

Clone this wiki locally