includeAllSources does not work as expectedSee original GitHub issue
From the documentation:
“You can opt to include all sources files, as indicated by the coverage preprocessor, in your code coverage data, even if there are no tests covering them.”
However, with the following karma.conf.js
When I run my
grunt test target, the coverage report only shows the JS for which tests exist and nothing else. This leads me to believe that the
includeAllSources flag does not work as advertised.
I have read the issue here https://github.com/karma-runner/karma-coverage/issues/11 logged almost two years ago, and the resulting PR, https://github.com/karma-runner/karma-coverage/pull/76
Both are still open however, and I am wondering whether the addition of includeAllSources superseded the above? In either case, having full test coverage for all JS, even is there are no tests for it, is what I believe most (perhaps even all) people would want and need.
It would be great if this issue could be resolved soon. Thank you.
- Created 8 years ago
Top GitHub Comments
facing the same issue. any help ? also trying to use karma-coverage-allsources https://www.npmjs.com/package/karma-coverage-allsources does not help. Apparently I get an error “could not load coverage-allsources it is not registered, Perhaps are you missing some plugin”.