-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.conf.ts
35 lines (35 loc) · 875 Bytes
/
wdio.conf.ts
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
import type { Options } from '@wdio/types';
export const config: Options.Testrunner = {
runner: 'browser',
autoCompileOpts: {
autoCompile: true,
tsNodeOpts: {
project: './tsconfig.json',
transpileOnly: true,
},
},
specs: ['./src/**/*.test.ts'],
exclude: [],
maxInstances: 10,
capabilities: [
{
browserName: 'chrome',
'goog:chromeOptions': {
args: ['--headless', '--disable-gpu', '--no-sandbox'],
},
},
],
logLevel: 'info',
bail: 0,
waitforTimeout: 10000,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
framework: 'mocha',
reporters: ['spec'],
mochaOpts: {
ui: 'bdd',
timeout: 60000,
},
...(process.env.SELENIUM_PORT ? { port: parseInt(process.env.SELENIUM_PORT) } : {}),
...(process.env.SELENIUM_HOSTNAME ? { hostname: process.env.SELENIUM_HOSTNAME } : {}),
};