1.2.0 • Published 4 years ago
gulp-nightwatch v1.2.0
gulp-nightwatch
Usage
First, install gulp-nightwatch
as a development dependency:
npm install --save-dev gulp-nightwatch
Then, write your gulpfile.js as below.
var gulp = require('gulp'),
nightwatch = require('gulp-nightwatch');
gulp.task('default', function() {
return gulp.src('gulpfile.js')
.pipe(nightwatch({
configFile: 'test/nightwatch.json'
}));
});
You can pass command line options to Nightwatch as an array by using the option cliArgs
.
gulp.task('nightwatch:chrome', function(){
return gulp.src('gulpfile.js')
.pipe(nightwatch({
configFile: 'test/nightwatch.json',
cliArgs: [ '--env chrome', '--tag sandbox' ]
}));
});
You may use an object instead, if you prefer.
gulp.task('nightwatch:chrome', function(){
return gulp.src('gulpfile.js')
.pipe(nightwatch({
configFile: 'test/nightwatch.json',
cliArgs: {
env: 'chrome',
tag: 'sandbox'
}
}));
});
API
nightwatch(options)
options
configFile
Type: String
Default: nightwatch.json
The path to your Nightwatch config
cliArgs
Type: Array
or Object
Default: null
Command line options for Nightwatch
1.2.0
4 years ago
1.1.0
5 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.3.3
6 years ago
0.3.2
8 years ago
0.3.1
8 years ago
0.3.0
8 years ago
0.2.9
8 years ago
0.2.8
8 years ago
0.2.7
8 years ago
0.2.6
9 years ago
0.2.5
9 years ago
0.2.4
9 years ago
0.2.3
9 years ago
0.2.2
9 years ago
0.2.1
9 years ago
0.2.0
9 years ago
0.1.4
9 years ago
0.1.3
9 years ago
0.1.2
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago
0.0.6
9 years ago
0.0.5
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
10 years ago
0.0.1
10 years ago