forked from unstubbable/universal-parse-url
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf-sauce.js
66 lines (64 loc) · 1.4 KB
/
karma.conf-sauce.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
const karmaCommon = require('./karma.conf-common');
const customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'Chrome',
version: 'latest'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'Firefox',
version: 'latest'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'Internet Explorer',
platform: 'Windows 8.1',
version: '11'
},
sl_ie_10: {
base: 'SauceLabs',
browserName: 'Internet Explorer',
platform: 'Windows 7',
version: '10'
},
sl_ie_9: {
base: 'SauceLabs',
browserName: 'Internet Explorer',
platform: 'Windows 7',
version: '9'
},
sl_edge: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: 'latest'
},
sl_safari: {
base: 'SauceLabs',
browserName: 'Safari',
platform: 'macOS 10.12',
version: 'latest'
},
sl_safari_9: {
base: 'SauceLabs',
browserName: 'Safari',
platform: 'OS X 10.11',
version: '9.0'
}
}
module.exports = function (config) {
karmaCommon(config);
config.set({
concurrency: 5,
sauceLabs: {
testName: 'universal-parse-url',
startConnect: !process.env.TRAVIS,
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER
},
captureTimeout: 120000,
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
reporters: ['mocha', 'karma-typescript', 'saucelabs']
});
};