forked from jmdobry/angular-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
37 lines (37 loc) · 887 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'],
browsers: ['PhantomJS'],
files: [
'node_modules/angular/angular.js',
'node_modules/angular-resource/angular-resource.js',
'node_modules/angular-mocks/angular-mocks.js',
'dist/angular-cache.js',
'./karma.start.js',
'test/**/*.js'
],
captureTimeout: 60000,
colors: true,
logLevel: config.LOG_INFO,
port: 9876,
plugins: [
'karma-phantomjs-launcher',
'karma-mocha',
'karma-chai',
'karma-sinon',
'karma-coverage'
],
runnerPort: 9100,
singleRun: true,
autoWatch: false,
coverageReporter: {
type: 'lcov',
dir: 'coverage/'
},
preprocessors: {
'dist/angular-cache.js': ['coverage']
},
reporters: ['progress', 'coverage']
})
}