-
Notifications
You must be signed in to change notification settings - Fork 1
/
wdio.conf.js
76 lines (73 loc) · 2.09 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
70
71
72
73
74
75
76
const capability = require("./capabilities.json")[process.env.CAPABILITY];
const chai = require("chai");
exports.config = {
host: "localhost",
path: "/wd/hub",
specs: ["./test/features/*.feature"],
exclude: [],
suites: {
foo: [""]
},
maxInstances: 1,
capabilities: [capability],
services: ["selenium-standalone"],
seleniumLogs: "/logs/selenium.log",
logLevel: "silent",
coloredLogs: true,
bail: 0,
screenshotPath: "./logs/screenshots/",
screenshotOnReject: true,
waitforTimeout: 120000,
framework: "cucumber",
cucumberOpts: {
require: ["./test/steps/common.steps.js"],
format: ["pretty"],
backtrace: false,
compiler: ["js:babel-register"],
failAmbiguousDefinitions: true,
failFast: false,
ignoreUndefinedDefinitions: false,
name: [],
snippets: false,
source: true,
profile: [],
snippetSyntax: undefined,
strict: true,
tagExpression: "not @Pending",
tagsInTitle: false,
timeout: 20000,
tags: []
},
reporters: ["dot", "spec", "junit"],
reporterOptions: {
junit: {
outputDir: "./results"
}
},
// WebDriverIO specific hooks
onPrepare: function(config, capabilities) {},
beforeSession: function(config, capabilities, specs) {},
before: function(capabilities, specs) {
global.expect = chai.expect;
global.assert = chai.assert;
global.should = chai.should();
},
beforeSuite: function(suite) {},
beforeHook: function() {},
afterHook: function() {},
beforeTest: function(test) {},
beforeCommand: function(commandName, args) {},
afterCommand: function(commandName, args, result, error) {},
afterTest: function(test) {},
afterSuite: function(suite) {},
after: function(result, capabilities, specs) {},
afterSession: function(config, capabilities, specs) {},
onComplete: function(exitCode, config, capabilities) {},
// Cucumber specific hooks
beforeFeature: function(feature) {},
beforeScenario: function(scenario) {},
beforeStep: function(step) {},
afterStep: function(stepResult) {},
afterScenario: function(scenario) {},
afterFeature: function(feature) {}
};