-
Notifications
You must be signed in to change notification settings - Fork 4
/
karma.conf.js
37 lines (37 loc) · 925 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
35
36
37
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['mocha', 'chai', 'sinon-chai', 'fixture'],
files: [
'node_modules/leaflet/dist/leaflet.js',
'node_modules/underscore/underscore.js',
'node_modules/jquery/dist/jquery.js',
'*.js',
'test/**/*Spec.js',
{ pattern: 'test/mocks/**/*' }
],
exclude: [
'**/*.swp'
],
preprocessors: {
'**/*.json' : ['html2js'],
'lib.js': 'coverage',
'census-reporter.js': 'coverage',
'map.js': 'coverage'
},
reporters: ['progress','coverage'],
coverageReporter: {
dir : 'coverage/',
reporters: [
{ type: 'html', subdir: 'report-html' },
{ type: 'lcov', subdir: 'report-lcov' }
]
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['PhantomJS'],
singleRun: false
});
};