Skip to content

Commit

Permalink
add support option
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Nov 19, 2014
1 parent 04a2c27 commit 62bdcc9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ when this option is specified, and all loading becomes explicit.

Files under directories named "support" are always loaded first.

#### support
Type: `String`

Default: `''`

Support files let you setup the environment in which steps will be run. If you are using steps option then you have to use support option as well (hooks etc.).


#### tags
Type: `String`

Expand Down
6 changes: 6 additions & 0 deletions tasks/cucumber-js-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = function (grunt) {
var options = this.options();

var steps = options.steps;
var support = options.support;
var tags = options.tags;
var format = options.format;
var modulePath = options.modulePath;
Expand Down Expand Up @@ -52,6 +53,11 @@ module.exports = function (grunt) {
execOptions.push(steps);
}

if (! _.isEmpty(support)) {
execOptions.push('-r');
execOptions.push(support);
}

if (! _.isEmpty(tags)) {
execOptions.push('-t');
execOptions.push(tags);
Expand Down

0 comments on commit 62bdcc9

Please sign in to comment.