Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

An almost-zero configuration Gulp plugin to run Selenium, PhantomJS and Nightwatch together in one process.

License

Notifications You must be signed in to change notification settings

peteward44/gulp-nightwatch-headless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

This project is no longer maintained

Karma is a much sleeker alternative to this now, this project won't be updated

gulp-nightwatch-headless

An almost-zero configuration Gulp plugin to run Selenium, PhantomJS, Nightwatch and a HTTP server together in one process.

npm install gulp-nightwatch-headless --save-dev

For anyone who wants to run Selenium, PhantomJS and a HTTP server for tests without the hassle of setting up a dedicated server for them.

Plugin accepts a config object. All options have defaults, all ports that the processes run on will be selected randomly (assuming it's open) but can be overriden with the 'port' option.

Example usage

var nightwatchHeadless = require( 'gulp-nightwatch-headless' );

gulp.task( 'automated-tests', function() {
	return gulp.src('')
		.pipe(nightwatchHeadless({
			nightwatch: {
				tempDir: 'temp',
				config: 'nightwatch.json'
			},
			selenium: {
			//	disable: true
			},
			httpserver: {
				port: 2043,
				path: 'output'
			},
			verbose: true
		}))
		.on('error', gutil.log);
} );

About

An almost-zero configuration Gulp plugin to run Selenium, PhantomJS and Nightwatch together in one process.

Resources

License

Stars

Watchers

Forks

Packages

No packages published