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

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.