Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created January 10, 2019 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seleniumgists/feae1c04d31604e5d11e9a32f7856ce8 to your computer and use it in GitHub Desktop.
Save seleniumgists/feae1c04d31604e5d11e9a32f7856ce8 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
gulp.task('test-e2e-prod', () => {
process.env.NODE_ENV = argv.env || 'default';
process.env.NODE_CONFIG_DIR = './test/config/e2e-prod/env';
return protractorFlake({
protractorPath: 'node_modules/protractor/bin/protractor',
maxAttempts: 2,
parser: 'standard',
// expects node to be in path
// set this to wherever the node bin is located
nodeBin: 'node',
// set color to one of the colors available at 'chalk' - <https://github.com/chalk/ansi-styles#colors>
color: 'magenta',
protractorArgs: ["./test/config/e2e-prod/protractor.conf.js"]
}, function (status, output) {
<http://console.info|console.info>(output);
process.exit(status);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment