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 ...

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.