-
Notifications
You must be signed in to change notification settings - Fork 314
/
karma-sauce.conf.js
69 lines (60 loc) · 1.46 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
module.exports = function(config) {
var customLaunchers = {
sl_chrome_49: {
base: 'SauceLabs',
browserName: 'chrome',
version: '49'
},
sl_chrome_latest: {
base: 'SauceLabs',
browserName: 'chrome',
version: 'latest'
},
sl_firefox_42: {
base: 'SauceLabs',
browserName: 'firefox',
version: '42'
},
sl_firefox_latest: {
base: 'SauceLabs',
browserName: 'firefox',
version: 'latest'
},
sl_edge_17: {
base: 'SauceLabs',
browserName: 'microsoftedge',
version: '17'
}
};
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' },
{ test: /\.json$/, loader: 'json-loader' }
]
}
},
webpackMiddleware: {
noInfo: true
},
singleRun: true,
reporters: ['dots', 'saucelabs']
});
};