Skip to content

Commit

Permalink
logical and
Browse files Browse the repository at this point in the history
  • Loading branch information
Benson Perry committed Sep 20, 2013
1 parent 04a2c27 commit 24a29ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ when this option is specified, and all loading becomes explicit.
Files under directories named "support" are always loaded first.

#### tags
Type: `String`
Type: `String` or `Array`

Default: `''`

Expand All @@ -58,6 +58,11 @@ this represents boolean NOT. Example:
by a comma, which represents logical OR. Example:
`tags: '@dev,@wip'`

To represent a logcal AND, use an array.
This is useful if you want to skip certain features
and run other specific (tagged) features. Example:
`tags: ['~@wip', '@dev']`

#### format
Type: `String`

Expand Down
9 changes: 7 additions & 2 deletions tasks/cucumber-js-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ module.exports = function (grunt) {
}

if (! _.isEmpty(tags)) {
execOptions.push('-t');
execOptions.push(tags);
if (typeof tags == "string") {
tags = [tags];
}
for (var i=0; i < tags.length; i++) {
execOptions.push('-t');
execOptions.push(tags[i]);
}
}

if (! _.isEmpty(format)) {
Expand Down

0 comments on commit 24a29ba

Please sign in to comment.