-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwdio.conf.js
48 lines (43 loc) · 1.06 KB
/
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
39
40
41
42
43
44
45
46
47
48
const { join } = require('path');
const fs = require('fs');
const packageJson = JSON.parse(fs.readFileSync('./package.json'));
const {
build: { productName },
} = packageJson;
process.env.TEST = true;
const config = {
maxInstances: 1,
services: [
[
'electron',
{
// appPath: 'node_modules/.bin/', // join(__dirname, 'src/build-debug/dist'),
// appName: 'electron',
binaryPath: join(__dirname, 'node_modules', '.bin', 'electron'),
appArgs: ['app=src/build-debug'],
chromedriver: {
port: 9519,
logFileName: 'wdio-chromedriver.log',
},
},
],
],
capabilities: [{
browserName: 'electron'
// alwaysMatch: {'browserName': 'electron'}
}],
port: 9519,
waitforTimeout: 5000,
connectionRetryCount: 10,
connectionRetryTimeout: 30000,
logLevel: 'debug',
runner: 'local',
outputDir: 'wdio-logs',
specs: ['./src/build-debug/tests/dom_test.js'],
// framework: 'mocha',
// mochaOpts: {
// ui: 'bdd',
// timeout: 30000,
// },
};
module.exports = { config };