Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('protractor', ['webdriver-update', 'webdriver'], function() {
return gulp.src('test/e2e/**/*.js')
.pipe(protractor({
configFile: config.test.protractor,
}))
.on('error', function(err) {
// Make sure failed tests cause gulp to exit non-zero
throw err;
});
});
gulp.task('protractor', function() {
return gulp.src(testFiles)
.pipe(protractor({
configFile: 'e2e-tests/protractor.conf.js'
}))
.on('error', function(err) {
// Make sure failed tests cause gulp to exit non-zero
throw err;
});
});
gulp.task('e2e', function () {
require(path.join(conf.dirs.root, 'bin/server.js'));
gulp.src(conf.src.e2eTests)
.pipe(protractor(conf.options.protractor))
.on('error', utils.log);
});
gulp.task('protractor', function(done) {
gulp.src(['e2e/**/*.js'])
.pipe(protractor({
configFile: 'protractor.conf.js'
})).on('error', function(e) {
console.log(e);
done();
}).on('end', done);
});
gulp.task('protractor', function () {
var configObj = {
configFile: config.test + 'protractor.conf.js'
};
if (argv.suite) {
configObj['args'] = ['--suite', argv.suite];
}
return gulp.src([])
.pipe(plumber({errorHandler: handleErrors}))
.pipe(protractor(configObj))
.on('error', function () {
gutil.log('E2E Tests failed');
process.exit(1);
});
});
gulp.task('protractor', function () {
var configObj = {
configFile: config.test + 'protractor.conf.js'
};
if (argv.suite) {
configObj['args'] = ['--suite', argv.suite];
}
return gulp.src([])
.pipe(plumber({errorHandler: handleErrors}))
.pipe(protractor(configObj))
.on('error', function () {
gutil.log('E2E Tests failed');
process.exit(1);
});
});
gulp.task('protractor', function () {
var configObj = {
configFile: config.test + 'protractor.conf.js'
};
if (argv.suite) {
configObj['args'] = ['--suite', argv.suite];
}
return gulp.src([])
.pipe(plumber({errorHandler: handleErrors}))
.pipe(protractor(configObj))
.on('error', function () {
gutil.log('E2E Tests failed');
process.exit(1);
});
});
gulp.task('protractor', function () {
var configObj = {
configFile: config.test + 'protractor.conf.js'
};
if (argv.suite) {
configObj['args'] = ['--suite', argv.suite];
}
return gulp.src([])
.pipe(plumber({errorHandler: handleErrors}))
.pipe(protractor(configObj))
.on('error', function () {
gutil.log('E2E Tests failed');
process.exit(1);
});
});
gulp.task('protractor', function () {
var configObj = {
configFile: config.test + 'protractor.conf.js'
};
if (argv.suite) {
configObj['args'] = ['--suite', argv.suite];
}
return gulp.src([])
.pipe(plumber({errorHandler: handleErrors}))
.pipe(protractor(configObj))
.on('error', function () {
gutil.log('E2E Tests failed');
process.exit(1);
});
});
gulp.task('protractor', 'Run protractor E2E tests', ['connect', 'webdriver:update'], function() {
gulp.src(bundle.directories.e2e + '/**.scenario.js')
.pipe((protractor({
configFile: __dirname + '/protractor.conf.js'
})).on('error', function(e) {
throw e;
})).on('end', function() {
stream.emit('kill');
});
});