O'Reilly logo

The Cucumber Book, 2nd Edition by Steve Tooke, Aslak Hellesoy, Matt Wynne

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

What We Just Learned

Cucumber has a rich set of command-line options that give you full control over how it behaves. You can do the following:

  • Run a subset of scenarios with --tags, --name, --line/--lines, or path:line.
  • Use the --format option to get progress, HTML, or JUnit reports.
  • List step definition statistics with --format usage and --format stepdefs.
  • Use the --require option to control where step definitions are loaded from.
  • Limit the work in progress with --wip and tag limits.
  • Define profiles in cucumber.yml and run them with a single --profile or -p option.
  • Integrate Cucumber into your Rake scripts.

Try This

We left out a couple of command-line options so you can experiment a little yourself. Here are some exercises you can ...

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