forked from stellar/js-stellar-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma-sauce.conf.js
67 lines (58 loc) · 1.33 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
module.exports = function(config) {
var customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
version: '44'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
version: '39'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '11'
},
// sl_edge: {
// base: 'SauceLabs',
// browserName: 'microsoftedge',
// version: '20'
// }
};
config.set({
sauceLabs: {
testName: 'js-stellar-sdk',
recordScreenshots: false,
recordVideo: false
},
browserDisconnectTimeout : 10000,
browserDisconnectTolerance : 1,
browserNoActivityTimeout : 4*60*1000,
captureTimeout : 4*60*1000,
frameworks: ['mocha', 'chai-as-promised', 'chai', 'sinon'],
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
files: [
'dist/stellar-sdk.js',
'test/test-helper.js',
'test/unit/**/*.js'
],
preprocessors: {
'test/**/*.js': ['webpack']
},
webpack: {
module: {
loaders: [
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader'}
]
}
},
webpackMiddleware: {
noInfo: true
},
singleRun: true,
reporters: ['dots', 'saucelabs']
});
};