Skip to content

Commit 93abf53

Browse files
karthiktv006sjelin
authored andcommitted
feat(cucumber): Support dryrun feature of cucumber
1 parent 4924028 commit 93abf53

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/referenceConf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ exports.config = {
311311
tags: '@dev',
312312
// How to format features (default: progress)
313313
format: 'summary'
314+
// Other options include `coffee`, `noSnippets`, and `dryRun`
314315
},
315316

316317
// See docs/plugins.md

lib/frameworks/cucumber.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ exports.run = function(runner, specs) {
6565
if (runner.getConfig().cucumberOpts.noSnippets) {
6666
execOptions.push('--no-snippets');
6767
}
68+
69+
// Process Cucumber 'dry-run' param
70+
if (runner.getConfig().cucumberOpts.dryRun) {
71+
execOptions.push('-d');
72+
}
6873
}
6974
global.cucumber = Cucumber.Cli(execOptions);
7075

0 commit comments

Comments
 (0)