-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile.js
26 lines (23 loc) · 885 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var gulp = require('gulp');
var exec = require('child_process').exec;
var webdriver = require('gulp-webdriver');
var seleniumStandalone = require("selenium-standalone");
gulp.task('default', ['test:e2e', 'killSelenium']);
gulp.task('launchSelenium', function() {
seleniumStandalone.install(function () {
seleniumStandalone.start(function (err, instance) {
});
});
});
gulp.task('launchAppium', function () {
exec('node \"C:\\Program Files (x86)\\Appium\\node_modules\\appium\\bin\\appium.js\"');
});
gulp.task('test:e2e', function() {
return gulp.src('./wdioRunner/wdio.conf.js').pipe(webdriver());
});
gulp.task('test:e2eAppium', ['launchAppium'], function() {
return gulp.src('./wdioRunner/wdio.conf.appium.js').pipe(webdriver());
});
gulp.task('killSelenium',['test:e2e'], function() {
process.exit(1);
});