How to use the nightwatch/lib/index.js.runner function in nightwatch

To help you get started, we’ve selected a few nightwatch 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 keystonejs / keystone-nightwatch-e2e / index.js View on Github external
function (cb) {
					Nightwatch.runner(argv, function (status) {
						var err = null;
						if (status) {
							console.log([moment().format('HH:mm:ss:SSS')] + ' kne: tests passed');
						} else {
							console.log([moment().format('HH:mm:ss:SSS')] + ' kne: tests failed');
							err = new Error('kne: nightwatch runner returned an error status code');
						}
						cb(err);
					});
				},
			], function (err) {

nightwatch

Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.

MIT
Latest version published 18 days ago

Package Health Score

92 / 100
Full package analysis