-
Notifications
You must be signed in to change notification settings - Fork 10
/
karma.browserstack.conf.js
91 lines (90 loc) · 2.4 KB
/
karma.browserstack.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
module.exports = (config) => {
config.set({
browsers: [
'FirefoxMAC',
'ChromeMAC',
// 'SafariMAC',
'OperaMAC',
'FirefoxWIN',
'ChromeWIN',
'OperaWIN',
],
files: [
'dist/karma/index.js',
],
frameworks: [
'mocha',
],
plugins: [
'karma-browserstack-launcher',
'karma-mocha',
],
reporters: [
'dots',
'BrowserStack',
],
singleRun: true,
client: {
mocha: {
timeout: 10000,
},
},
browserStack: {
username: process.env.BROWSERSTACK_USERNAME,
accessKey: process.env.BROWSERSTACK_ACCESSKEY,
timeout: 1500,
captureTimeout: 500,
},
customLaunchers: {
FirefoxMAC: {
base: 'BrowserStack',
browser: 'Firefox',
browser_version: '51',
os: 'OS X',
os_version: 'Sierra',
},
ChromeMAC: {
base: 'BrowserStack',
browser: 'Chrome',
browser_version: '58',
os: 'OS X',
os_version: 'Sierra',
},
SafariMAC: {
base: 'BrowserStack',
browser: 'Safari',
browser_version: '10.1',
os: 'OS X',
os_version: 'Sierra',
},
OperaMAC: {
base: 'BrowserStack',
browser: 'Opera',
browser_version: '46',
os: 'OS X',
os_version: 'Sierra',
},
FirefoxWIN: {
base: 'BrowserStack',
browser: 'Firefox',
browser_version: '51',
os: 'WINDOWS',
os_version: '10',
},
ChromeWIN: {
base: 'BrowserStack',
browser: 'Chrome',
browser_version: '58',
os: 'WINDOWS',
os_version: '10',
},
OperaWIN: {
base: 'BrowserStack',
browser: 'Opera',
browser_version: '46',
os: 'WINDOWS',
os_version: '10',
},
},
});
};