forked from inversify/InversifyJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
34 lines (32 loc) · 793 Bytes
/
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
module.exports = function (config) {
'use strict';
var testFiles = __dirname + '/bundled/test/**/*.test.js',
coverageFolder = __dirname + '/coverage/';
config.set({
basePath: '',
frameworks: ['mocha', 'chai', 'sinon'],
browsers: ['PhantomJS'],
reporters: ['progress', 'coverage'],
coverageReporter: {
type : 'lcov',
dir : coverageFolder,
},
plugins : [
'karma-coverage',
'karma-mocha',
'karma-chai',
'karma-sinon',
'karma-phantomjs-launcher'
],
preprocessors: {
'**/bundled/test/**/*.test.js' : 'coverage'
},
files : [
testFiles
],
port: 9876,
colors: true,
autoWatch: false,
logLevel: config.LOG_INFO
});
};