-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
42 lines (34 loc) · 1.04 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
module.exports = function(config) {
config.set({
frameworks: ['chai-as-promised', 'mocha', 'sinon', 'sinon-chai'],
//plugins: ['karma-mocha', 'karma-phantomjs-launcher', 'karma-coverage', 'karma-sinon-chai'],
preprocessors: {
'dist/**/*.js': ['coverage']
},
reporters: ['mocha', 'coverage'],
port: 9018,
runnerPort: 9100,
urlRoot: '/',
autoWatch: false,
browsers: [
'PhantomJS'
],
client: {
captureConsole: true,
mocha: {
bail: true
}
},
logLevel: config.LOG_INFO,
coverageReporter: {
// specify a common output directory
dir: 'reports/coverage',
reporters: [
// reporters not supporting the `file` property
//{type: 'html', subdir: 'report-html'},
{type: 'lcov', subdir: 'report-lcov'},
{type: 'clover', subdir: 'app'}
]
}
});
};