All Projects → rochejul → Gulp Angular Protractor

rochejul / Gulp Angular Protractor

Licence: mit
Gulp plugin to run protractor tests

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gulp Angular Protractor

Review System Demo
A Spring Boot and AngularJS boilerplate project.
Stars: ✭ 18 (-28%)
Mutual labels:  protractor
percy-node
Utilities for visual regression testing in node based testing setups (like Protractor) for use with percy.io
Stars: ✭ 17 (-32%)
Mutual labels:  protractor
angular-webpack-skeleton
This project is deprecated. Please refer to https://github.com/Ks89/angular-cli-skeleton
Stars: ✭ 16 (-36%)
Mutual labels:  protractor
after-work.js
[DEPRECATED] CLI for automated tests in web projects.
Stars: ✭ 56 (+124%)
Mutual labels:  protractor
protractor-cucumber-allure
e2e kickstarter framework for using protractorJS with cucumberJS and allure jenkins CI reports
Stars: ✭ 51 (+104%)
Mutual labels:  protractor
angular-workshop
Learning Angular: From component state to NgRx
Stars: ✭ 40 (+60%)
Mutual labels:  protractor
meazure
Screen magnification, measurement, capture and color sampling for Windows.
Stars: ✭ 55 (+120%)
Mutual labels:  protractor
Serenity Js
A next generation, full-stack acceptance testing framework optimised for collaboration, speed and scale!
Stars: ✭ 346 (+1284%)
Mutual labels:  protractor
angular-cli-skeleton
angular-cli skeleton to quickly start a new project with advanced features and best practices. All features are described in README.md.
Stars: ✭ 32 (+28%)
Mutual labels:  protractor
CodeSpecJS
UI Automation Testing without writing a single line of code
Stars: ✭ 16 (-36%)
Mutual labels:  protractor
protractor-starter
#archived: protractor-starter end-to-end tests setup also for non angular application
Stars: ✭ 37 (+48%)
Mutual labels:  protractor
testing-angular-applications
Project for the Testing Angular Applications book
Stars: ✭ 99 (+296%)
Mutual labels:  protractor
angular-material-boilerplate
A straightforward and well structured boilerplate based on Google's Angular Material project.
Stars: ✭ 28 (+12%)
Mutual labels:  protractor
protractor-cli
🎯 An Interactive command line interface & config helper for Protractor.js !
Stars: ✭ 14 (-44%)
Mutual labels:  protractor
Ionic Boilerplate
✨ An Ionic Starter kit featuring Tests, E2E, Karma, Protractor, Jasmine, Istanbul, Gitlab CI, Automatic IPA and APK, TypeScript 2, TsLint, Codelyzer, Typedoc, Yarn, Rollup, and Webpack 2
Stars: ✭ 309 (+1136%)
Mutual labels:  protractor
protractor-flake
Rerun potentially flakey protractor tests before failing.
Stars: ✭ 82 (+228%)
Mutual labels:  protractor
protractor-new-hope
Demo app for ng-conf testing workshop
Stars: ✭ 19 (-24%)
Mutual labels:  protractor
Generator M Ionic
Advanced workflows and setup for building rock-solid Ionic apps
Stars: ✭ 677 (+2608%)
Mutual labels:  protractor
Codeceptjs
Supercharged End 2 End Testing Framework for NodeJS
Stars: ✭ 3,592 (+14268%)
Mutual labels:  protractor
ng-apimock
Node plugin that provides the ability to use scenario based api mocking: for local development for protractor testing
Stars: ✭ 102 (+308%)
Mutual labels:  protractor

gulp-angular-protractor

Build StatusDependency Status devDependency Status

Known Vulnerabilities

NPM NPM

Gulp plugin to run protractor tests with automatic launch and stop of the WebDriver server

Install

$ npm install --save-dev gulp-angular-protractor

Side dependencies

You should declare what expected version of protractor and webdriver manager you want to use:

{
  "name": "example-gulp-protractor",
  "version": "0.0.1",
  "description": "",
  "scripts": {
    "gulp": "node node_modules/gulp/bin/gulp.js",
    "test": "npm run gulp protractor"
  },
  "devDependencies": {
    "gulp": "latest",
    "gulp-angular-protractor": "latest",
    "protractor": "4.0.11",
    "webdriver-manager": "10.2.8"
  }
}

Be carefull: some protractor and webdriver dependencies version required:

  • Some specific node version
  • Some specific npm version
  • Some specific browser version
  • ...

Usage

var gulp = require('gulp');
var angularProtractor = require('gulp-angular-protractor');

gulp.src(['./src/tests/*.js'])
	.pipe(angularProtractor({
		'configFile': 'test/protractor.config.js',
		'args': ['--baseUrl', 'http://127.0.0.1:8000'],
		'autoStartStopServer': true,
		'debug': true
	}))
	.on('error', function(e) { throw e })

Full example

/*jshint node: true, camelcase: false*/
/*global require: true*/

'use strict';

var gulp = require('gulp'),
    gulpProtractorAngular = require('gulp-angular-protractor');

// Setting up the test task
gulp.task('protractor', function(callback) {
    gulp
        .src(['example_spec.js'])
        .pipe(gulpProtractorAngular({
            'configFile': 'protractor.conf.js',
            'debug': false,
            'autoStartStopServer': true
        }))
        .on('error', function(e) {
            console.log(e);
        })
        .on('end', callback);
});

API

angularProtractor(options)

options

options.autoStartStopServer

Type: Boolean Default: true

If true, the plugin will update the WebDriver, launch the WebDriver server before launching tests and stop it at the end automatically

options.configFile

Type: String Default: null

The path to your protractor config

options.args

Type: Array Default: []

Arguments get passed directly to the protractor call Read the docs for more information

options.debug

Type: Boolean Default: false

Enables Protractor's debug mode, which can be used to pause tests during execution and to view stack traces.

options.verbose

Type: Boolean Default: true

options.protractorModulePath

Type: String Default: undefined

If you want to use another protractor version instead the default one

options.webDriverUpdate

Type: Object Default: undefined

options.webDriverUpdate.skip

Type: Boolean Default: false

options.webDriverUpdate.browsers

Type: Array Default: ['chrome']

List of browsers to update the webdriver

options.webDriverUpdate.args

Type: Array Default: []

Additional arguments to pass for the update of the webdriver

options.webDriverStart

Type: Object Default: undefined

options.webDriverStart.args

Type: Array Default: []

Additional arguments to pass for the start of the webdriver

License

MIT © Julien Roche

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].