File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ module.exports = function(config) {
16
16
'karma-jasmine' ,
17
17
'karma-sinon-chai' ,
18
18
'karma-chrome-launcher' ,
19
- 'karma-spec-reporter'
19
+ 'karma-spec-reporter' ,
20
+ 'karma-coverage'
20
21
] ,
21
22
22
23
// list of files / patterns to load in the browser
@@ -38,13 +39,19 @@ module.exports = function(config) {
38
39
// preprocess matching files before serving them to the browser
39
40
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
40
41
preprocessors : {
42
+ 'src/**/*.js' : [ 'coverage' ]
41
43
} ,
42
44
43
45
44
46
// test results reporter to use
45
47
// possible values: 'dots', 'progress'
46
48
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
47
- reporters : [ 'spec' ] ,
49
+ reporters : [ 'spec' , 'coverage' ] ,
50
+
51
+
52
+ coverageReporter : {
53
+ type : 'text'
54
+ } ,
48
55
49
56
50
57
// web server port
Original file line number Diff line number Diff line change 27
27
"karma-chai" : " ^0.1.0" ,
28
28
"karma-chai-jquery" : " ^1.0.0" ,
29
29
"karma-chrome-launcher" : " ^0.1.4" ,
30
+ "karma-coverage" : " ^1.0.0" ,
30
31
"karma-jasmine" : " ^0.3.6" ,
31
32
"karma-jquery" : " ^0.1.0" ,
32
33
"karma-sinon-chai" : " ^0.2.0" ,
You can’t perform that action at this time.
0 commit comments