This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwdio.conf.js
53 lines (48 loc) · 1.67 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
const { UtamWdioService } = require('wdio-utam-service');
const PORT = process.env.PORT || 8080;
exports.config = {
runner: 'local',
specs: ['src/test/**/*.spec.ts'],
maxInstances: 1,
capabilities: [{
maxInstances: 1,
browserName: 'chrome'
}],
logLevel: 'info',
//
// If you only want to run your tests until a specific amount of tests have failed use
// bail (default is 0 - don't bail, run all tests).
bail: 0,
baseUrl: `http://localhost:${PORT}`,
// Default timeout for all waitFor* commands.
waitforTimeout: 10000,
// Default timeout in milliseconds for request
// if browser driver or grid doesn't send response
connectionRetryTimeout: 120000,
// Default request retries count
connectionRetryCount: 3,
automationProtocol: 'webdriver',
// Test runner services
services: ['chromedriver', [UtamWdioService, {}]],
framework: 'jasmine',
// Test reporter for stdout.
// The only one supported by default is 'dot'
// see also: https://webdriver.io/docs/dot-reporter.html
reporters: ['spec'],
//
// Options to be passed to Jasmine.
jasmineNodeOpts: {
// Jasmine default timeout
defaultTimeoutInterval: 60000,
//
// The Jasmine framework allows interception of each assertion in order to log the state of the application
// or website depending on the result. For example, it is pretty handy to take a screenshot every time
// an assertion fails.
expectationResultHandler: function(passed, assertion) {
// do something
}
},
onPrepare() {
// Hook before wdio is ready
},
}