forked from iamkun/dayjs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.sauce.conf.js
101 lines (99 loc) · 2.06 KB
/
karma.sauce.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
module.exports = function (config) {
var batches = [
{
sl_chrome_26: {
base: 'SauceLabs',
browserName: 'chrome',
version: '26'
},
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome'
},
sl_firefox_4: {
base: 'SauceLabs',
browserName: 'firefox',
version: '4'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox'
},
sl_mac_safari_8: {
base: 'SauceLabs',
browserName: 'safari',
version: '8',
platform: 'OS X 10.10'
},
sl_mac_safari: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'macOS 10.13'
}
},
{
sl_ie_9: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '9'
},
sl_ie: {
base: 'SauceLabs',
browserName: 'internet explorer'
},
sl_edge_13: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: '13'
},
sl_edge: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge'
}
},
{
sl_ios_safari_9: {
base: 'SauceLabs',
browserName: 'iphone',
version: '9.3'
},
sl_android_4_4: {
base: 'SauceLabs',
browserName: 'android',
version: '4.4'
}
},
{
sl_ios_safari: {
base: 'SauceLabs',
browserName: 'iphone'
},
sl_android: {
base: 'SauceLabs',
browserName: 'android'
}
}
];
var batch = batches[process.argv[4] || 0]
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'dayjs.min.js',
'test/*spec.js'
],
reporters: ['dots', 'saucelabs'],
port: 9876,
colors: true,
logLevel: config.LOG_DEBUG,
sauceLabs: {
// build: 'Manual',
testName: 'Day.js'
},
captureTimeout: 200000, // try fix ios timeout
customLaunchers: batch,
browsers: Object.keys(batch),
singleRun: true
});
};