forked from stellar/js-stellar-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma-sauce.conf.js
53 lines (45 loc) · 1.1 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
var webpackConfig = require('./webpack.config.browser.js');
delete webpackConfig.plugins;
delete webpackConfig.output;
module.exports = function(config) {
var customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 8.1',
version: '49'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 8.1',
version: '44'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8.1',
version: 'latest'
}
};
config.set({
sauceLabs: {
testName: 'js-stellar-base',
recordScreenshots: false,
recordVideo: false
},
frameworks: ['mocha', 'sinon-chai'],
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
files: ['dist/stellar-base.min.js', 'test/unit/**/*.js'],
preprocessors: {
'test/unit/**/*.js': ['webpack']
},
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true
},
singleRun: true,
reporters: ['dots', 'saucelabs']
});
};