Closed tyleragnew closed 7 years ago
I have also tried passing it in as a protractor arg and no go:
gulp.task('e2e-myMachine', ['build-e2e'], function(cb) {
var protractorFlake = require('protractor-flake');
protractorFlake({
maxAttempts: 3,
protractorArgs: [ "--protractor.conf.myMachine.js"
]
}, function (status, output) {
process.exit(status);
});
});
There is no configFile
option; protractorArgs
are passed directly to protractor (just like you would via the CLI) so you'll need to pass the argument exactly as you would to protractor, without the --
protractorFlake({
maxAttempts: 3,
protractorArgs: ["protractor.conf.myMachine.js"]
}, function (status, output) {})
I was able to do this with a test Gulpfile. I'm going to go ahead and close this for now but please holler if that does not work for you.
Thanks 😄 !
@NickTomlin - Im seeing an issue where I'm not able to pass in the config file as a build arg. Is Flake configured to allow a conf file other than the regular protractor.conf.js ? This is my gulp task: