-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwdio.conf.js
69 lines (68 loc) · 2.53 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
64
65
66
67
68
69
const { join } = require('path')
const store = require('./src/helpers/store').store
exports.config = {
runner: 'local',
path: '/',
specs: [
'./test/features/calculator.feature'
],
maxInstances: 1,
capabilities: [{
maxInstances: 5,
browserName: 'chrome',
'goog:chromeOptions': {
args: ['--disable-gpu', '--disable-browser-side-navigation', '--disable-dev-shm-usage']
},
}],
// Level of logging verbosity: trace | debug | info | warn | error | silent
logLevel: 'silent',
bail: 0,
waitforTimeout: 5000,
connectionRetryTimeout: 90000,
connectionRetryCount: 1,
services: ['chromedriver',
'selenium-standalone',
['image-comparison', {
baselineFolder: './image/baseline/desktop_chrome',
formatImageName: `scenario-{width}x{height}`,
screenshotPath: join(process.cwd(), '.tmp/'),
savePerInstance: true,
autoSaveBaseline: true,
blockOutStatusBar: true,
blockOutToolBar: true,
}],
],
seleniumLogs: 'logs',
seleniumInstallArgs: {
drivers: {
chrome: { version: 'latest' }
}
},
seleniumArgs: {
drivers: {
chrome: { version: 'latest' }
}
},
framework: 'cucumber',
reporters: ['spec'],
cucumberOpts: {
require: ['./src/step-definitions/*'], // <string[]> (file/dir) require files before executing features
backtrace: true, // <boolean> show full backtrace for errors
compiler: [], // <string[]> ("extension:module") require files with the given EXTENSION after requiring MODULE (repeatable)
dryRun: false, // <boolean> invoke formatters without executing steps
failFast: false, // <boolean> abort the run on first failure
format: ['pretty'], // <string[]> (type[:path]) specify the output format, optionally supply PATH to redirect formatter output (repeatable)
colors: true, // <boolean> disable colors in formatter output
snippets: true, // <boolean> hide step definition snippets for pending steps
source: true, // <boolean> hide source URIs
profile: [], // <string[]> (name) specify the profile to use
strict: true, // <boolean> fail if there are any undefined or pending steps
tagExpression: '', // <string[]> (expression) only execute the features or scenarios with tags matching the expression
timeout: 30000, // <number> timeout for step definitions
ignoreUndefinedDefinitions: false, // <boolean> Enable this config to treat undefined definitions as warnings.
},
mochaOpts: {
ui: 'bdd',
timeout: 60000
}
}