-
Notifications
You must be signed in to change notification settings - Fork 142
/
karma.conf-ci.js
78 lines (76 loc) · 1.68 KB
/
karma.conf-ci.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
77
78
var base = require('./karma.conf');
var testName = require('./package.json').name;
module.exports = function(config) {
var customLaunchers = {
Chrome: {
base: 'SauceLabs',
browserName: 'chrome',
version: 'latest'
},
'Chrome-1': {
base: 'SauceLabs',
browserName: 'chrome',
version: 'latest-1'
},
Firefox: {
base: 'SauceLabs',
browserName: 'firefox',
version: 'latest'
},
'Firefox-1': {
base: 'SauceLabs',
browserName: 'firefox',
version: 'latest-1'
},
'Safari-1': {
base: 'SauceLabs',
browserName: 'safari',
version: '11'
},
Safari: {
base: 'SauceLabs',
browserName: 'safari',
version: 'latest'
},
EDGE: {
base: 'SauceLabs',
browserName: 'microsoftedge',
platform: 'Windows 10',
version: 'latest'
},
'EDGE-1': {
base: 'SauceLabs',
browserName: 'microsoftedge',
platform: 'Windows 10',
version: 'latest-1'
}
};
base(config);
config.set({
captureTimeout: 180000,
browserDisconnectTimeout: 180000,
browserDisconnectTolerance: 3,
browserNoActivityTimeout: 300000,
singleRun: true,
reporters: ['summary'],
browsers: Object.keys(customLaunchers),
customLaunchers: customLaunchers,
browserstack: {
video: false
},
sauceLabs: {
connectOptions: {
noSslBumpDomains: 'all'
},
testName: testName,
retryLimit: 3,
recordVideo: false,
recordScreenshots: false,
idleTimeout: 600,
commandTimeout: 600,
maxDuration: 5400
},
transports: ['websocket', 'polling'],
port: 9876
});
};