-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
60 lines (58 loc) · 1.32 KB
/
karma.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
module.exports = config => {
const customLaunchers = {
'SL Chrome 26': {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Linux',
version: '26.0'
},
'SL Edge 13': {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: '13.10586'
},
'SL Firefox 4': {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Linux',
version: '4.0'
},
'SL Internet Explorer 9': {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '9.0'
},
'SL Safari 8': {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.10',
version: '8.0'
}
};
config.set({
browserify: {
debug: true,
transform: ['browserify-istanbul']
},
coverageReporter: {
reporters: [{type: 'lcov'}, {type: 'text'}]
},
files: ['test/*'],
frameworks: ['browserify', 'chai', 'mocha', 'sinon'],
preprocessors: {
'test/*': ['browserify']
},
reporters: ['dots', 'coverage', 'coveralls'],
singleRun: true
});
if (!config.local) {
config.set({
browsers: Object.keys(customLaunchers),
concurrency: 1,
customLaunchers,
reporters: [...config.reporters, 'saucelabs']
});
}
};