-
Notifications
You must be signed in to change notification settings - Fork 2
/
karma.mocha.conf.js
71 lines (68 loc) · 1.73 KB
/
karma.mocha.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
const webpack = require('webpack');
const commonConfig = require('./karma.conf');
const customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 7',
// version: '58'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 7',
// version: '53'
},
// sl_opera: {
// base: 'SauceLabs',
// browserName: 'opera',
// platform: 'Windows 7',
// // version: '12'
// },
sl_safari: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'macOS 10.12',
version: '10'
},
// sl_ios_safari_9: {
// base: 'SauceLabs',
// browserName: 'iphone',
// version: '10.3'
// },
// 'SL_ANDROID4.4': {
// base: 'SauceLabs',
// browserName: 'android',
// platform: 'Linux',
// version: '4.4'
// },
SL_ANDROID5: {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
version: '5.1'
},
SL_ANDROID6: {
base: 'SauceLabs',
browserName: 'Chrome',
platform: 'Android',
version: '6.0',
device: 'Android Emulator'
},
};
[9, 10, 11, 13, 14].forEach(v => {
customLaunchers[`sl_ie${v}`] = {
base: 'SauceLabs',
browserName: v === 13 || v === 14 ? 'MicrosoftEdge' : 'internet explorer',
platform: `Windows ${v === 13 || v === 14 ? '10' : '7'}`,
version: v
};
});
module.exports = function(config) {
commonConfig(config);
config.set({
browsers: Object.keys(customLaunchers),
customLaunchers: customLaunchers,
reporters: ['dots', 'saucelabs'],
});
};