How to use gulp-protractor - 10 common examples

To help you get started, we’ve selected a few gulp-protractor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fossasia / loklak_walls / gulp / tasks / protractor.js View on Github external
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;
    });

});
github enricolucia / what-2-nite / gulpfile.js View on Github external
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;
    });
});
github michaelkrone / generator-material-app / generators / app / templates / gulp / tasks / tests.js View on Github external
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);
});
github stomt / gulp-modular / tasks / protractor.js View on Github external
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);
  });
github jhipster / jhipster-registry / gulpfile.js View on Github external
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);
        });
});
github k8s-for-greeks / gpmr / pet-race-ui / gulpfile.js View on Github external
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);
        });
});
github empowerhack / hub / gulpfile.js View on Github external
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);
        });
});
github jhipster / jhipster-sample-app-mongodb / gulpfile.js View on Github external
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);
        });
});
github jhipster / jhipster-sample-app-micronaut / gulpfile.js View on Github external
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);
        });
});
github leodido / ng-caret-aware / gulpfile.js View on Github external
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');
      });
});

gulp-protractor

A helper for protactor and gulp

MIT
Latest version published 5 years ago

Package Health Score

51 / 100
Full package analysis

Popular gulp-protractor functions