Skip to content

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

bradly-fairbanks/gulp-nightwatch-headless

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Languages

  • JavaScript 100.0%