-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathkarma.conf.js
105 lines (101 loc) · 2.81 KB
/
karma.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
102
103
104
105
module.exports = function (karma) {
const gridUrl = 'http://some.remote-host.com:4444/wd/hub';
const firefoxPreferences = {
// use OS cert store on windows
'security.enterprise_roots.enabled': true
};
let customLaunchers = {
'chrome-win7': {
base: 'SeleniumGrid',
gridUrl: gridUrl,
browserName: 'chrome',
applicationName: 'chrome/win7',
heartbeatInterval: 10000,
acceptInsecureCerts: true
},
'chrome-beta-win7': {
base: 'SeleniumGrid',
gridUrl: gridUrl,
browserName: 'chrome',
applicationName: 'chrome/win7',
heartbeatInterval: 10000,
acceptInsecureCerts: true,
options: {
setChromeBinaryPath: "C:\\Program Files (x86)\\Google\\Chrome Beta\\Application\\chrome.exe"
}
},
'firefox-win7': {
base: 'SeleniumGrid',
gridUrl: gridUrl,
browserName: 'firefox',
applicationName: 'firefox/win7',
heartbeatInterval: 10000,
acceptInsecureCerts: true,
firefoxPreferences: firefoxPreferences,
options: {
setBinary: 'c:\\program files\\mozilla firefox\\firefox.exe'
},
arguments: [
'-headless'
]
},
'chrome-beta-win81': {
base: 'SeleniumGrid',
gridUrl: gridUrl,
browserName: 'chrome',
applicationName: 'chrome/win81',
heartbeatInterval: 10000,
acceptInsecureCerts: true,
options: {
setChromeBinaryPath: "C:\\Program Files (x86)\\Google\\Chrome Beta\\Application\\chrome.exe"
}
},
'IE11-win10': {
base: 'SeleniumGrid',
gridUrl: gridUrl,
browserName: 'internet explorer',
applicationName: 'ie11/win10',
suppressWarning: true,
heartbeatInterval: 10000,
},
'edge-win10': {
base: 'SeleniumGrid',
gridUrl: gridUrl,
browserName: 'MicrosoftEdge',
heartbeatInterval: 10000,
acceptInsecureCerts: true
},
'chrome-mac1011': {
base: 'SeleniumGrid',
gridUrl: gridUrl,
browserName: wd.Browser.CHROME,
applicationName: 'chrome/mac1011',
heartbeatInterval: 10000,
acceptInsecureCerts: true,
someCustomCapability: 'customValue'
},
'chrome-beta-mac1011': {
base: 'SeleniumGrid',
gridUrl: gridUrl,
browserName: wd.Browser.CHROME,
applicationName: 'chrome/mac1011',
heartbeatInterval: 10000,
acceptInsecureCerts: true,
options: {
setChromeBinaryPath: "/Applications/Google Chrome Beta.app/Contents/MacOS/Google Chrome"
}
}
};
config.set({
basePath: './',
frameworks: ["jasmine"],
reporters: ['progress'],
logLevel: karma.LOG_INFO,
customLaunchers: customLaunchers,
browsers: ['firefox-win7', 'chrome-beta-win81', 'chrome-mac1011'];
files: [
"tests/*.spec.js"
],
singleRun: true
});
}