@@ -9,21 +9,16 @@ module.exports = function (config) {
9
9
10
10
// plugins
11
11
plugins : [
12
- //'karma-coverage',
13
12
'karma-coverage-istanbul-reporter' ,
14
13
'karma-spec-reporter' ,
15
14
'karma-webpack' ,
16
15
'karma-jasmine' ,
17
16
'karma-jasmine-matchers' ,
18
17
'karma-chrome-launcher' ,
19
-
20
-
21
18
] ,
22
19
// preprocess matching files BEFORE serving to browser
23
20
preprocessors : {
24
- //'*.js': ['coverage']
25
21
'src/javascript/*.js' : [ 'webpack' ] ,
26
- //'src/javascript/!(*spec).js': ['coverage'],
27
22
28
23
} ,
29
24
autoWatch : true ,
@@ -68,8 +63,7 @@ module.exports = function (config) {
68
63
//list of files to exclude
69
64
exclude : [ ] ,
70
65
// test results reporters to use
71
- // reporters: ['spec', 'coverage'], //'spec' to see specs list
72
- reporters : [ 'spec' , 'coverage-istanbul' ] ,
66
+ reporters : [ 'spec' , 'coverage-istanbul' ] , //'spec' to see specs list
73
67
specReporter : {
74
68
suppressErrorSummary : false ,
75
69
failFast : false
@@ -81,7 +75,7 @@ module.exports = function (config) {
81
75
singleRun : false ,
82
76
coverageIstanbulReporter : {
83
77
reporters : [
84
- // reporters not supporting the `file` property
78
+ // reporters
85
79
[ 'html' , 'lcovonly' ] ,
86
80
] ,
87
81
dir : path . join ( __dirname , 'coverage' ) ,
@@ -93,29 +87,6 @@ module.exports = function (config) {
93
87
}
94
88
} ,
95
89
} ,
96
- // changed default output dir from 'coverage/'
97
- // reports: [
98
- // // reporters not supporting the `file` property
99
- // ['html','lcovonly'],
100
- // ],
101
- // combineBrowserReports: true,
102
- //
103
- //
104
- // },
105
- // coverageReporter : {
106
- // type : 'text',
107
- // dir : 'coverage/',
108
- // file : 'coverage.txt'
109
- // },
110
- // coverageReporter: {
111
- // dir: 'coverage/',
112
- // instrumenterOptions: {
113
- // istanbul: { noCompact: true }
114
- // },
115
- // reporters: [ {
116
- // type: 'lcovonly',
117
- // //subdir: 'report-lcov'
118
- // },]
119
- // }
90
+
120
91
} )
121
92
} ;
0 commit comments