forked from digitalbazaar/forge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma-sauce.conf.js
79 lines (72 loc) · 1.89 KB
/
karma-sauce.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
/*!
* Karma Sauce Labs configuration
*
* `SAUCE_USERNAME` and `SAUCE_ACCESS_KEY` environmental variables should
* be set. For configuration details, see:
* https://github.com/karma-runner/karma-sauce-launcher
*/
var baseConfig = require('./karma.conf');
module.exports = function(config) {
// load base forge karma config
baseConfig(config);
// Define an unlimited number of browser/OS combinations here. Sauce Labs
// will manage concurrency based on user's account restrictions.
// Platform Configurator Tool:
// https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/
var sauceLabsCustomLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Linux',
version: '48.0'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Linux',
version: '45.0'
},
sl_ios_safari_10: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.11',
version: '10.0'
},
sl_ios_safari_9: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.11',
version: '9.0'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '11.0'
},
sl_edge_14: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: '14.14393'
},
sl_edge_13: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: '13.10586'
}
};
config.set({
sauceLabs: {
testName: 'Forge Unit Tests',
startConnect: true
},
captureTimeout: 180000,
// merge SauceLabs launchers
customLaunchers: sauceLabsCustomLaunchers,
// default to only SauceLabs launchers
browsers: Object.keys(sauceLabsCustomLaunchers),
reporters: ['dots', 'saucelabs']
});
};