-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
61 lines (48 loc) · 1.46 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = function(config){
config.set({
basePath : './',
files : [
'public/app/bower_components/angular/angular.js',
'public/app/bower_components/angular-route/angular-route.js',
'public/app/bower_components/angular-mocks/angular-mocks.js',
'public/app/components/**/*.js',
'public/app/workout/**/*.js',
'public/app/services/**/*.js',
'public/app/exercise/**/*.js',
'public/app/login/**/*.js',
'public/app/signup/**/*.js'
],
autoWatch : true,
frameworks: ['jasmine'],
browsers : ['Chrome'],
plugins : [
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-jasmine',
'karma-junit-reporter',
'karma-html-reporter',
'karma-coverage'
],
reporters: ['progress', 'html', 'coverage'],
preprocessors: {
'public/app/components/**/*.js': ['coverage'],
'public/app/workout/**/*.js': ['coverage'],
'public/app/services/**/*.js': ['coverage'],
'public/app/exercise/**/*.js': ['coverage'],
'public/app/login/**/*.js': ['coverage'],
'public/app/signup/**/*.js': ['coverage']
},
coverageReporter: {
type:'text-summary',
dir: 'coverage/'
},
junitReporter : {
outputFile: 'test_out/unit.xml',
suite: 'unit'
},
htmlReporter: {
outputDir:'karma_html',
templatePath: __dirname+'/node_modules/karma-html-reporter/jasmine_template.html'
}
});
};