Running Cucumber in Continuous Integration

Many teams set up their continuous integration[53] (CI) server to run Cucumber every time someone shares changes with the rest of the team. Since it’s a command-line tool, there is nothing fancy you need to do—just plop the cucumber command into the CI project’s configuration.

You may want to use slightly different command-line options for CI than you use on your own workstation. You can do this by defining a special profile for the CI build (for example ci).

Being Strict

It’s common to have missing or pending steps while we’re working on a new scenario. Some teams strive to keep the mainline (trunk) of the source repository pristine, without any pending or missing steps.

CI systems detect failure ...

Get The Cucumber Book, 2nd Edition 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.