forked from prebid/Shared-id-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.saucelabs.js
39 lines (32 loc) · 1.14 KB
/
karma.saucelabs.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
const webpackConfig = require('./webpack.config')(undefined, {mode: 'development'});
const browsers = require('./browsers.json');
const pkg = require('./package.json');
const title = `${pkg.name} ${pkg.version} unit tests`;
module.exports = function(config) {
config.set({
frameworks: ['mocha'],
files: [
{ pattern: 'test/**/*.spec.js' }
],
preprocessors: {
'test/**/*.spec.js': ['webpack', 'sourcemap']
},
webpack: webpackConfig[0],
reporters: ['mocha', 'saucelabs', 'bamboo'],
sauceLabs: {
testName: title,
startConnect: true,
verbose: true,
verboseDebugging: true
},
browsers: Object.keys(browsers),
//browsers: ['sl_ie_11_windows_10'],
//browsers: ['sl_chrome_66_windows_10'],
customLaunchers: browsers,
//browserDisconnectTimeout: 10000, // default 2000
browserDisconnectTolerance: 1, // default 0
//browserNoActivityTimeout: 4 * 60 * 1000, // default 10000
captureTimeout: 4 * 60 * 1000, // default 60000
singleRun: true
});
};