在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):tatsuyafw/gulp-nightwatch开源软件地址(OpenSource Url):https://github.com/tatsuyafw/gulp-nightwatch开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-nightwatchUsageFirst, install 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 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'
}
}));
}); APInightwatch(options)optionsconfigFileType: The path to your Nightwatch config cliArgsType: Command line options for Nightwatch |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论