From b38a3bbce4142d3b1e5439f3bca4f4f604bfc887 Mon Sep 17 00:00:00 2001 From: Sergey Ermakovich Date: Fri, 6 Oct 2017 02:46:28 +0300 Subject: [PATCH] add support for --world-parameters resolves https://github.com/vgamula/gulp-cucumber/issues/44 --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 4ea55cd..eedc002 100644 --- a/index.js +++ b/index.js @@ -28,6 +28,7 @@ module.exports = function ({ format, tags, compiler, + worldParameters, } = {}) { [].concat(files) @@ -54,6 +55,10 @@ module.exports = function ({ runOptions.push('--compiler'); runOptions.push(compiler); } + if (worldParameters) { + runOptions.push('--world-parameters'); + runOptions.push(JSON.stringify(worldParameters)); + } const features = [];