File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 58
58
"supertest" : " ^0.15.0"
59
59
},
60
60
"devDependencies" : {
61
- "gulp-istanbul" : " ^0.9.0"
61
+ "gulp-istanbul" : " ^0.9.0" ,
62
+ "karma-coverage" : " ^0.2.7" ,
63
+ "karma-mocha-reporter" : " ^1.0.2"
62
64
}
63
65
}
Original file line number Diff line number Diff line change @@ -23,7 +23,21 @@ module.exports = function (config) {
23
23
frameworks : [ 'mocha' , 'chai' ] ,
24
24
basePath : path . join ( __dirname , '../../' ) ,
25
25
files : filesCollection ,
26
- exclude : excludeFiles
26
+ exclude : excludeFiles ,
27
+ reporters : [ 'mocha' , 'coverage' ] ,
28
+ preprocessors : {
29
+ 'public/main.js' : 'coverage'
30
+ } ,
31
+ coverageReporter : {
32
+ dir : 'coverage/browser/' ,
33
+ reporters : [ {
34
+ type : 'text' ,
35
+ subdir : '.'
36
+ } , {
37
+ type : 'html' ,
38
+ subdir : '.'
39
+ } ]
40
+ }
27
41
} ;
28
42
29
43
config . set ( configObj ) ;
You can’t perform that action at this time.
0 commit comments