-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwdio.conf.js
63 lines (47 loc) · 1.23 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
reportDirectory = "./testResults/"+new Date();
exports.config = {
runner: 'local',
suites: {
signUp: [
'./dist/test/specs/signup.js'
]
},
specs: [
'./dist/test/specs/**/*.js'
],
// Patterns to exclude.
exclude: [
// 'path/to/excluded/files'
],
maxInstances: 10,
capabilities: [{
maxInstances: 5,
//
browserName: 'chrome',
acceptInsecureCerts: true
}],
logLevel: 'info',
bail: 0,
baseUrl: 'https://www.heroku.com',
waitforTimeout: 10000,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
services: ['chromedriver'],
// services: [
// ['selenium-standalone', { drivers: { chrome: true, safari: 'latest'} }]
// ],
framework: 'mocha',
reporters: [['allure', {
outputDir: 'allure-results',
disableWebdriverStepsReporting: true,
disableWebdriverScreenshotsReporting: true,
}]],
mochaOpts: {
ui: 'bdd',
timeout: 60000
},
afterTest: async(test, context, { error, result, duration, passed, retries }) =>{
TODO
// await browser.takeScreenshot();
},
}