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

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 checkout
 
$ ​cd checkout

The next thing we need is to get a couple of JARs that contain the bare minimum for running Cucumber. Create a new folder to place them in:

 
$ ​mkdir jars

Download the latest versions of the following JARs from the public Maven repository[9] and copy them into the jars folder. This is enough for us to use Cucumber with Java.

• cucumber-core• cucumber-java• cucumber-jvm-deps• gherkin

We’re going ...

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