forked from KevinSheedy/jquery.alphanum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
62 lines (60 loc) · 1.43 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
module.exports = function(config) {
// Example set of browsers to run on Sauce Labs
// Check out https://saucelabs.com/platforms for all browser/platform combos
var customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 7',
version: '35'
},
sl_chrome_beta: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 10',
version: 'beta'
},
sl_firefox_beta: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 10',
version: 'beta'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 7',
version: '30'
},
sl_ios_safari: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.9',
version: '7.0'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8.1',
version: '11'
}
};
config.set({
// The rest of your karma config is here
// ...
sauceLabs: {
testName: 'Web App Unit Tests'
},
frameworks: ['qunit'],
files: [
'node_modules/jquery/dist/jquery.js',
'jquery.alphanum.js',
'node_modules/qunit-extras/qunit-extras.js',
'unit/*.js'
],
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
reporters: ['dots', 'saucelabs'],
singleRun: true
});
};