diff --git a/tasks/cucumber-js-task.js b/tasks/cucumber-js-task.js index c6250a9..8f42b45 100644 --- a/tasks/cucumber-js-task.js +++ b/tasks/cucumber-js-task.js @@ -49,8 +49,18 @@ module.exports = function (grunt) { } if (! _.isEmpty(steps)) { - execOptions.push('-r'); - execOptions.push(steps); + function addStep(step) { + execOptions.push('-r'); + execOptions.push(step); + } + + if (_.isArray(steps)) { + for (var i=0; i < steps.length; i++) { + addStep(steps[i]); + } + } else { + addStep(steps); + } } if (! _.isEmpty(tags)) {