Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

code11/gulp-protractor

 
 

Repository files navigation

gulp-protractor NPM version Build Status Dependency Status

Run your angular protractor tests with gulp

Usage

First, install gulp-protractor AND protractor as a development dependency:

npm install --save-dev gulp-protractor protractor

Then, add it to your gulpfile.js:

var protractor = require("gulp-protractor").protractor;

gulp.src(["./src/tests/*.js"])
	.pipe(protractor({
		configFile: "test/protractor.config.js"
	}))	
	.on('error', function(e) { throw e })

Protractor Webdriver

You have to update and start a standalone selenium server. Please read the offical instructions. You can use the build in webdriver snippet.

var webdriver = require("gulp-protractor").webdriver;
gulp.task('webdriver', webdriver);

API

protractor(options)

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

Runs protractor with the debug flag Protractor Debugging documentation

License

MIT License

About

gulp wrapper for protractor tests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%