-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf-ci.js
38 lines (36 loc) · 934 Bytes
/
karma.conf-ci.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
let webpackConfig = require('./webpack.test.config')
module.exports = function(config) {
// Example set of browsers to run on Sauce Labs
// Check out https://saucelabs.com/platforms for all browser/platform combos
var customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 7',
version: '35'
}
}
config.set({
basePath: '',
frameworks: ['mocha', 'power-assert'],
preprocessors: {
'test/index.js': ['webpack', 'sourcemap']
},
webpackMiddleware: {
// webpack-dev-middleware configuration
// i. e.
stats: 'errors-only'
},
webpack: webpackConfig,
files: [
'test/index.js'
],
sauceLabs: {
testName: 'shadow Unit Tests'
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
reporters: ['dots', 'saucelabs'],
singleRun: true
})
}