Chapter 3Gherkin Basics

Now that you’ve gained some confidence with how Cucumber works, it’s worth stepping back for a few moments and doing a little studying. We’re going to look at Gherkin, the language we use for writing Cucumber features.

By the end of this chapter you’ll understand how to write specifications for your software that can be both read by your stakeholders and tested by Cucumber. You’ll learn what each of the Gherkin keywords does and how they all fit together to make readable, executable Cucumber specifications.

Get The Cucumber for Java Book now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.