O'Reilly logo

The Cucumber Book, 2nd Edition by Steve Tooke, Aslak Hellesoy, Matt Wynne

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Feature

Each Gherkin file begins with the Feature keyword. This keyword doesn’t really affect the behavior of your Cucumber tests at all; it just gives you a convenient place to put some summary documentation about the group of tests that follow.

Here’s an example:

 Feature​: This is the feature title
  This is the description of the feature, which can
  span multiple lines.
 You can even include empty lines, like this one​:
 
  In fact, everything until the next Gherkin keyword is included
 in​ ​the​ ​description.

The text immediately following on the same line as the Feature keyword is the name of the feature, and the remaining lines are its description. You can include any text you like in the description except a line beginning with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required