Skip to content

Runtime Options

mpinardi edited this page Aug 19, 2020 · 7 revisions

Usage

  • $ .\node_modules.bin\cucumber-perf -p <GLOB|DIR|FILE[:LINE]> [options] [<GLOB|DIR|FILE[:LINE]>...]

Cucumber Performance Options

  • Plans
    • Description: Where your plan files are located.
    • Command line prefix: -p <GLOB|DIR|FILE[:LINE]>
  • Plan Tags
    • Description: Only execute the features or scenarios with tags matching the expression (repeatable)
    • Command line prefix: --plan-tags
  • Perf Name
    • Description: Only execute the simulations with name matching the expression (repeatable)
    • Command line prefix: --perf-name
  • Perf Profile
    • Description: Specify the profile to use (repeatable)
    • Command line prefix: --perf-profile
  • Plans
    • Description: Path to plans
    • Command line prefix: -p, --plans <GLOB|DIR|FILE[:LINE]>
  • Perf Format
    • Description: Specify the a performance formatter. Optionally supply PATH to redirect formatter output and any options (repeatable)
    • Command line prefix: -f, --perf-format <TYPE[:PATH]>
  • Perf Format Options
    • Description: Provide options for cucumber per formatters (repeatable)
    • Command line prefix: --perf-format-options
    • Uses: Colors can be disabled with --perf-format-options '{"colorsEnabled": false}'
  • Strict Stats
    • Description: Enable including failed results in statistics
    • Command line prefix: --no-strict-stats
  • Exit
    • Description: Force shutdown of the event loop when the test run has finished: will call process.exit
    • Command line prefix: --exit
  • Perf Dry Run
    • Description: Invoke formatters without executing runner processes
    • Command line prefix: --perf-dry-run
  • Version
    • Description: Version of cucumber performance
    • Command line prefix: -v, --version
  • I18N Keywords
    • Description: List language keywords.
    • Command line prefix: --i18n-keywords <ISO 639-1>
  • I18N Lanaguages
    • Description: Provide the default language for feature files
    • Command line prefix: --language <ISO 639-1>

Cucumber Options

See cucumber's documentation for more details (https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md)

  • Fail Fast
    • Description: Abort the cucumber runtime on first failure
    • Command line prefix: --fail-fast
  • Format
    • Description: Cucumber formatter specify the output format, optionally supply PATH to redirect.
    • Command line prefix: --format <TYPE[:PATH]>
  • Format Options
    • Description: Provide options for formatters (repeatable).
    • Command line prefix: --format-options
  • Name
    • Description: Only execute the scenarios with name matching the expression (repeatable).
    • Command line prefix: --name
  • No Strict
    • Description: Succeed even if there are pending steps.
    • Command line prefix: --no-strict
  • Require
    • Description: Require files before executing features (repeatable).
    • Command line prefix: -r, --require <GLOB|DIR|FILE>
  • Require Module
    • Description: Require node modules before requiring files (repeatable).
    • Command line prefix: --require-module <NODE_MODULE>
  • Tags
    • Description: Only execute the features or scenarios with tags matching the expression (repeatable).
    • Command line prefix: -t, --tags
  • World Parameters
    • Description: Provide parameters that will be passed to the world constructor (repeatable).
    • Command line prefix: --world-parameters
Clone this wiki locally