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

Cucumber’s Command-Line Options

Let’s start by taking a look at the command-line options. Like most command-line tools, Cucumber provides a --help option. The following is a shortened version of what that would print:

 $ ​​cucumber​​ ​​--help
 
 -r, --require LIBRARY|DIR Require files before executing the features.
  --i18n LANG List keywords for in a particular language.
  Run with "--i18n help" to see all languages.
 -f, --format FORMAT How to format features (Default: pretty).
 -o, --out [FILE|DIR] Write output to a file/directory instead of
  STDOUT.
 -t, --tags TAG_EXPRESSION Only execute the features or scenarios with
  tags matching TAG_EXPRESSION.
 -n, --name NAME Only execute the feature elements which match
  part of the given name. ...

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