Mastering pro tips for writing expressive Gherkin (Intermediate)

In the Building a real web application with Cucumber (Intermediate) recipe, we completed five simple user stories driven by Cucumber, and we learnt how to drive a Rails web application development using Cucumber in a BDD style.

Gherkin provides various kinds of expressive syntax. In this recipe, we are going to learn various kinds of skills and tips with Cucumber Gherkin DSL, and how to write readable, organized, and reusable Gherkin to help us solve real-world problems.

Getting ready

We will reuse the Rails application, cucumber_bdd_how_to, which we created in the Writing your first Hello World feature (Simple) recipe, so please cd into that directory to get prepared.

How to do it... ...

Get Instant Cucumber BDD How-to now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.