O'Reilly logo

The Cucumber for Java Book by Seb Rose, Matt Wynne, Aslak Hellesoy

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

Chapter 5Expressive Scenarios

In Chapter 3, Gherkin Basics, we deliberately didn’t give you the whole story and showed you just a core set of keywords instead. They’re the fundamental building blocks you need to get started working with Cucumber, and we wanted to get you started as quickly as possible. Now it’s time to refine your skills.

When you’re writing Cucumber features, make readability your main goal. Otherwise, a reader can easily feel more like they’re reading a computer program than a specification document, which is something we want you to try to avoid at all costs. After all, if your features aren’t easy for nonprogrammers to read, you might as well just be writing your tests in plain old code.

The real key to expressive ...

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