-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.conf.ts
44 lines (40 loc) · 886 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
36
37
38
39
40
41
42
43
44
import { Options } from '@wdio/types';
import dotenv from 'dotenv';
dotenv.config();
const { APP_URL } = process.env;
const config: Options.Testrunner = {
autoCompileOpts: {
autoCompile: true,
tsNodeOpts: {
transpileOnly: true,
project: './tsconfig.json',
},
},
specs: ['./src/specs/**/*.spec.ts'],
suites: {
base: ['./src/specs/base/**'],
advanced: ['./src/specs/advanced/**'],
},
maxInstances: 10,
capabilities: [
{
maxInstances: 5,
browserName: 'chrome',
acceptInsecureCerts: true,
},
],
logLevel: 'silent',
bail: 0,
baseUrl: APP_URL,
waitforTimeout: 10000,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
services: ['chromedriver'],
framework: 'mocha',
reporters: [['spec', { showPreface: false }]],
mochaOpts: {
ui: 'bdd',
timeout: 60000,
},
};
export { config };