karma-coverage icon indicating copy to clipboard operation
karma-coverage copied to clipboard

How to exclude models, enums, mock files from coverage report?

Open deepakmhr opened this issue 6 years ago • 1 comments

This is the karma configuration for predecessors I'm using but it's still exporting code converge for all files including models, enums and mock files.

preprocessors: {
    // source files, that you wanna generate coverage for 
    // do not include tests or libraries 
    // (these files will be instrumented by Istanbul) 
    '../src/**/!(*spec|*model|*enum|*mock).js': ['coverage']
},

Please help me If I've configured karma wrongly?

deepakmhr avatar Mar 07 '18 07:03 deepakmhr

I would like to know how to do this as well... I can get them to be excluded from testing but not from what is exported from coverage reports

packruler avatar Apr 03 '18 14:04 packruler