forked from klamping/wdio-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwdio.conf.local.js
47 lines (39 loc) · 1.1 KB
/
wdio.conf.local.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
39
40
41
42
43
44
45
46
47
var notifier = require('node-notifier');
// require prod configuration
var prodConfig = require('./wdio.conf.js').config;
// clone prod config and add new properties/overrides
var localConfig = Object.assign(prodConfig, {
baseUrl: 'http://localhost',
capabilities: [{
browserName: 'chrome'
}],
services: ['selenium-standalone'],
// Hooks to notify Growl-like programs
onPrepare: function (config, capabilities) {
notifier.notify({
title: 'WebdriverIO',
message: 'Test run started'
});
},
afterTest: function (test) {
if (!test.passed) {
notifier.notify({
title: 'Test failure!',
message: test.parent + ' ' + test.title
});
}
},
onComplete: function (exitCode) {
notifier.notify({
title: 'WebdriverIO',
message: 'Tests finished running.'
});
}
});
// delete Sauce service information
delete localConfig.user;
delete localConfig.key;
delete localConfig.sauceConnect;
// We're going to skip visual regression testing since we're running local browsers
delete localConfig.visualRegression;
exports.config = localConfig;