Creating a Feature

Cucumber tests are grouped into features. We use this name because we want them to describe the features that a user will be able to enjoy when using our program. The first thing we need to do is make a directory where we’ll store our new program along with the features we’ll be writing for it.

 
$ ​mkdir calculator
 
$ ​cd calculator

We’re going to let Cucumber guide us through the development of our calculator program, so let’s start right away by running cucumber in this empty folder:

 
$ ​cucumber
 
 
You don't have a 'features' directory. Please create one to get started.
 
See http://cukes.info/ for more information.

Since we didn’t specify any command-line arguments, Cucumber has assumed that we’re using the conventional ...

Get The Cucumber 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.