-
Notifications
You must be signed in to change notification settings - Fork 1
/
wdio.conf.js
38 lines (37 loc) · 869 Bytes
/
wdio.conf.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
27
28
29
30
31
32
33
34
35
36
37
38
var Promise = require('promise');
var WebdriverManager = require('webdriver-manager');
var wm = new WebdriverManager();
exports.config = {
specs: [
'./test/**.js'
],
exclude: [],
capabilities: [{
browserName: 'chrome'
}],
logLevel: 'verbose',
coloredLogs: true,
screenshotPath: './errorShots/',
baseUrl: 'http://webdriver.io/',
waitforTimeout: 10000,
framework: 'mocha',
reporter: 'dot',
mochaOpts: {
ui: 'bdd'
},
onPrepare: function() {
return new Promise(function (resolve, reject) {
wm.start({closeOnStdinInput: false}, function (err) {
if (err) { reject(err); }
resolve();
});
});
},
before: function() {
},
after: function() {
},
onComplete: function() {
wm.stop();
}
};