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-only', ['webdriver-update'], function (done) {
var testFiles = [
'test/e2e/**/*.js'
];
var seleniumStandAlone = new SeleniumStandAlone();
seleniumStandAlone.versionCustom = '3.4.0';
var seleniumServerJar = path.resolve(SeleniumConfig.getSeleniumDir(), seleniumStandAlone.executableFilename());
gulp.src(testFiles)
.pipe($.protractor.protractor({
args: ['--seleniumServerJar='+seleniumServerJar],
configFile: 'test/protractor.conf.js'
}))
.on('error', function (err) {
// Make sure failed tests cause gulp to exit non-zero
throw err;
})
.on('end', function () {
// Close browser sync server
$.browserSync.exit();
done();