-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
45 lines (38 loc) · 1009 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
38
39
40
41
42
43
44
45
module.exports = function(config) {
config.set({
files: [
// Third-party vendor files
'public/js/lib/angular.js',
'public/js/lib/angular-route.js',
'public/js/lib/angular-mocks.js',
'public/js/lib/satellizer.js',
// App entry point
'public/js/app.js',
// App services, controllers, directives, filters, etc.
'public/js/controllers/*.js',
'public/js/services/*.js',
// Unit tests
'test/unit/**/*.test.js'
],
autoWatch: true,
frameworks: ['mocha', 'chai'],
browsers: ['PhantomJS'],
plugins: [
'karma-phantomjs-launcher',
'karma-mocha',
'karma-chai',
'karma-coverage'
],
reporters: ['progress', 'coverage'],
preprocessors: {
'public/js/app.js': ['coverage'],
'public/js/controllers/*.js': ['coverage'],
'public/js/services/*.js': ['coverage']
},
coverageReporter: {
type: 'lcov',
dir: 'test',
subdir: 'coverage'
}
});
};