A plugin to use CucumberJS in StrykerJS
🥒 💖 👽
Note: this plugin only supports the
@cucumber/cucumber nodejs test runner. If you're running cucumber with Jest or Karma, be sure to use those respective test runners instead.
Install @stryker-mutator/cucumber-runner locally within your project folder, like so:
npm i --save-dev @stryker-mutator/cucumber-runner
@stryker-mutator/cucumber-runner is a plugin for
stryker to enable
@cucumber/cucumber as a test runner.
As such, you should make sure you have the correct versions of its dependencies installed:
You can find the
peerDependencies in @stryker-mutator/cucumber-runner's package.json file.
You can configure the cucumber test runner in the
The cucumber runner supports loading cucumber profiles from your
cucumber.js configuration file. The
default profile will automatically be loaded if none was specified.
Choose which profile to run. See cucumber profiles
Choose which features to load. See Running specific features.
Choose which tags to focus. See Tags.
@stryker-mutator/cucumber-runner plugin supports coverage analysis, test filtering and test location reporting. This means that
--coverageAnalysis perTest (which is the default) is supported and will yield the best performance.
Non-standard feature file locations
@stryker-mutator/cucumber-runner version 6.1, non-standard feature file locations are supported out of the box.