gherkin-specs
Generate Javascript implementation (specs) of Gherkin features.
Helper created in complement of gherkin-specs-api
, to allow you to easilly generate
gherkin-like implementations and use it with any tools that understand such files,
such as karma-jasmine-feature
or node-gherkin-runner
.
Install
npm install gherkin-specs -g
Warning
⚠️ For now, the tool does not take care about existing spec file, it will overwrite them.
Run
gherkin-specs *.feature
Help
gherkin-specs --help
Will output:
Usage: gherkin-specs [OPTION] [feature files matching glob]
Example: gherkin-specs test/**/*.feature
Options:
-t, --typescript generate specs in Typescript
--es3 generate specs in ES3
--no-params-matching prevent double quotes string to be interpreted as parameters in regexp
-h, --help display this help
--verbose verbose mode
-v, --version show version
Or take a look at the wiki