Socket
Socket
Sign inDemoInstall

cucumber-steps-defs

Package Overview
Dependencies
93
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cucumber-steps-defs

> Convert cucumber features to steps definition with pleasure


Version published
Maintainers
1
Install size
12.4 MB
Created

Readme

Source

Cucumber steps defs

Convert cucumber features to steps definition with pleasure

Installation

Install it globally for CLI-like usage:

npm i -g cucumber-steps-defs

Or locally for access to API from your code:

npm i --save-dev cucumber-steps-defs

Usage

Binary usage

After installation you can immediatly start transforming feature files:

cucumber-steps-defs -f path/to/feature -o output/path

CLI options:

OptionDefault valueDesription
-f, --featureundefinedPath to cucumber feature file*
-o, --output.Path to generated steps definition file
-h, --helpPrints usage information

* – means required option

Usage from code

If you want to use generator in your code, you can use API directly:

const { convert } = require('cucumber-steps-defs')

convert('features/foo.feature', 'output/path')
  .then(() => { ... })
  .catch(err => { ... })

Keywords

FAQs

Last updated on 21 Jun 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc