karma-coverage
karma-coverage copied to clipboard
istanbul ignore annotation does not work in coverage
Hello, I have next dependencies installed for project: dependencies.txt And here is my karma.conf.js: karma.conf.txt I have next block of code:
/* istanbul ignore next */
function appMenu(MenuService) {
/* istanbul ignore next */
return MenuService.loadAppMenu();
}
And here is the Coverage summary:
Statements : 87% ( 87/100 ) Branches : 62.5% ( 5/8 ) Functions : 44.44% ( 4/9 ) Lines : 87% ( 87/100 )
And here is a screenshot from html report:
At the bottom of html report I see: Code coverage generated by istanbul
I tried different ways to ignore these two lines from coverage report:
Could anyone help me to find a solution how to use ignore line/statement/branch from coverage report? Thank you.
try adding 'coverage' to preprocessors, if you are lucky enough you might not end up with out of memory error like me and have istanbul annotations correctly parsed ;)
doesn't work for me 😭
I have the same issue. /* istanbul ignore next */
is respected by my remapIstanbulReporter
reporter, but not by coverageReporter
.
Same problem here.
same problem here
Same problem here (issue opened in 2016!)