Created
May 9, 2018 09:34
-
-
Save binarycreations/231c77277a9e2f152da05af63336024c to your computer and use it in GitHub Desktop.
Cucumber CLI --help options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Usage: java cucumber.api.cli.Main [options] [[[FILE|DIR][:LINE[:LINE]*] ]+ | @FILE ] | |
Options: | |
-g, --glue PATH Where glue code (step definitions, hooks | |
and plugins) are loaded from. | |
-p, --[add-]plugin PLUGIN[:PATH_OR_URL] | |
Register a plugin. | |
Built-in formatter PLUGIN types: junit, | |
html, pretty, progress, json, usage, rerun, | |
testng. Built-in summary PLUGIN types: | |
default_summary, null_summary. PLUGIN can | |
also be a fully qualified class name, allowing | |
registration of 3rd party plugins. | |
--add-plugin does not clobber plugins of that | |
type defined from a different source. | |
-f, --format FORMAT[:PATH_OR_URL] Deprecated. Use --plugin instead. | |
-t, --tags TAG_EXPRESSION Only run scenarios tagged with tags matching | |
TAG_EXPRESSION. | |
-n, --name REGEXP Only run scenarios whose names match REGEXP. | |
-d, --[no-]-dry-run Skip execution of glue code. | |
-m, --[no-]-monochrome Don't colour terminal output. | |
-s, --[no-]-strict Treat undefined and pending steps as errors. | |
--snippets [underscore|camelcase] Naming convention for generated snippets. | |
Defaults to underscore. | |
-v, --version Print version. | |
-h, --help You're looking at it. | |
--i18n LANG List keywords for in a particular language | |
Run with "--i18n help" to see all languages | |
--junit,OPTION[,OPTION]* Pass the OPTION(s) to the JUnit module. | |
Use --junit,-h or --junit,--help to print the | |
options of the JUnit module. | |
Feature path examples: | |
<path> Load the files with the extension ".feature" | |
for the directory <path> | |
and its sub directories. | |
<path>/<name>.feature Load the feature file <path>/<name>.feature | |
from the file system. | |
classpath:<path>/<name>.feature Load the feature file <path>/<name>.feature | |
from the classpath. | |
<path>/<name>.feature:3:9 Load the scenarios on line 3 and line 9 in | |
the file <path>/<name>.feature. | |
@<path>/<file> Parse <path>/<file> for feature paths generated | |
by the rerun formatter. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For whatever reason the options for the Cucumber CLI aren't listed anywhere and you are expected to run --help yourself. For future reference here are the options for version 2.4.