-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwdio.conf.js
executable file
·44 lines (42 loc) · 1.08 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
const spawn = require('child_process').spawn;
const path = require('path');
const IsTestable = process.env.IS_TESTABLE === 'true';
const IsWin = process.platform === 'win32';
const LaunchTarget = path.join(process.cwd(), IsWin ? 'RunOpenFin.bat' : 'RunOpenFin.sh');
const DebuggingPort = 12565;
exports.config = {
specs: [
'./test.js'
],
capabilities: [
{
browserName: 'chrome',
'testable:options': {
openfinConfigUrl: 'app_sample.json'
},
'goog:chromeOptions': IsTestable ? {} : {
w3c: false,
extensions: [],
debuggerAddress: `127.0.0.1:${DebuggingPort}`
}
}
],
maxInstances: 1,
host: '127.0.0.1',
port: 9515,
reporters: ['dot', 'concise'],
path: '/',
logLevel: 'error',
coloredLogs: true,
framework: 'mocha',
waitforTimeout: 20000,
mochaOpts: {
ui: 'bdd',
timeout: 500000
},
onWorkerStart: function () {
if (!IsTestable) {
spawn(LaunchTarget, ['--config=app_sample.json', `--remote-debugging-port=${DebuggingPort}`]);
}
}
};