Chapter 5. From examples to executable specifications

This chapter covers

  • Turning concrete examples into executable scenarios
  • Writing basic scenarios
  • Using data tables to drive scenarios
  • Writing more advanced scenarios using more JBehave/Gherkin keywords
  • Organizing scenarios in feature files

In the last chapter, you saw a number of techniques to identify and describe valuable features. You also saw how conversations with the stakeholders around concrete examples are a very effective way to build up a common understanding of a problem space. In this chapter, you’ll learn how to express these examples clearly and precisely, in a way that will allow you to transform them into executable specifications and living documentation (see figure ...

Get BDD in Action 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.