O'Reilly logo

Writing Great Specifications: Using Specification by Example and Gherkin by Kamil Nicieja

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

Appendix. Executing specifications with Cucumber

This appendix is a quick tutorial on how to write and run simple automated tests for feature files with Cucumber and Gherkin. I do realize that some readers will expect an explanation of the executable part of executable specifications. Execution is Cucumber’s role. To execute a specification, you write tests based on a -prepared scenario, which you later evolve into a scenario outline—and then you automate that, too. I’m assuming you’ve read at least chapters 2 and 5, which talk about scenarios and scenario outlines. You can, however, proceed up to section A.8 without having read chapter 5, and then come back later.

This tutorial will teach you the basic workings of the automation layer based ...

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