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

What We Just Learned

Congratulations, you’ve graduated from Gherkin school! Let’s look back over what we’ve learned in this chapter.

  • Readability should be your number-one goal when writing Gherkin features. Always try to sit together with a stakeholder when you write your scenarios, or at the very least pass them over for feedback once you’ve written them. Keep fine-tuning the language in your scenarios to make them more readable.

  • Use a Background to factor out repeated steps from a feature and to help tell a story.

  • Repetitive scenarios can be collapsed into a Scenario Outline.

  • Steps can be extended with multiline strings or data tables.

  • You can organize features into subfolders, like chapters in a book.

  • Tags allow you to mark up scenarios ...

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