Skip to content

Commit

Permalink
Added MYRIAD_CUCUMBER_PROFILE environment variable to spawned cucumbe…
Browse files Browse the repository at this point in the history
…r processes
  • Loading branch information
simondean committed Jul 18, 2013
1 parent f8269b2 commit 8ca21f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/myriad_cucumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,16 @@ function getWorkerTasks(options, callback) {
Object.keys(options.profiles).forEach(function(profileName) {
var profile = options.profiles[profileName];

var env = profile.env || {};
env.MYRIAD_CUCUMBER_PROFILE = profileName;

var task = {
options: {
package: options.package,
localPackage: options.localPackage,
bin: profile.bin,
args: profile.args.concat(extraArgs, [featurePath]),
env: profile.env || {}
env: env
},
featurePath: featurePath
};
Expand Down

0 comments on commit 8ca21f3

Please sign in to comment.