Skip to content

Commit

Permalink
fix(runner): add -r for each cucumber require
Browse files Browse the repository at this point in the history
  • Loading branch information
groner authored and juliemr committed May 16, 2014
1 parent 99a339d commit cbcdb48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ Runner.prototype.runCucumber_ = function(specs, done) {
cucumberResolvedRequire =
ConfigParser.resolveFilePatterns(self.config_.cucumberOpts.require);
if (cucumberResolvedRequire && cucumberResolvedRequire.length) {
execOptions.push('-r');
execOptions = execOptions.concat(cucumberResolvedRequire);
execOptions = cucumberResolvedRequire.reduce(function(a, fn) {
return a.concat('-r', fn);
}, execOptions);
}
}

Expand Down

0 comments on commit cbcdb48

Please sign in to comment.