Any idea why code coverage in specific percentages is not shown when viewing from generated coverage folder but it is visible in terminal. Please find attachments below for the issue. Thanks in advance.
Asked
Active
Viewed 573 times
0
-
how did you setup the path? – Sajeetharan Jul 07 '20 at 05:51
-
This is really strange. Did you change anything in karma.conf.js ? – Akhil Jul 07 '20 at 06:01
-
No.. i havent chnaged anything. I have also compared karma.conf.js with other angular project which is wroking fine, there is no change – Sucharitha Suchi Jul 07 '20 at 06:03
-
This issue already seems to be reported and resolved. Please visit :: https://github.com/facebook/jest/issues/9388 – Akhil Jul 07 '20 at 06:07
-
@Sajeetharan, which path you mean? in karma.conf.js file i have this -> dir: require('path').join(__dirname, './coverage/cicd-ui'), – Sucharitha Suchi Jul 07 '20 at 06:08
-
I beleive you'll need to update to latest version of the coverage reporter – Akhil Jul 07 '20 at 06:08
-
"jasmine-core": "~3.4.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~4.1.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.0" These are the versions used.. I think these are latest – Sucharitha Suchi Jul 07 '20 at 06:23
-
1No they aren't... for eg. Latest version of karma-coverage-istanbul-reporter is 3.0.3 but not 2.0.1 This is just an example.. please try to find out the version info in npmjs.com – Akhil Jul 07 '20 at 07:30
-
I have changed karma-coverage-istanbul-reporter version to 3.0.3, it is working now. Thanks much. – Sucharitha Suchi Jul 09 '20 at 04:20
1 Answers
0
updated version of "karma-coverage-istanbul-reporter" to "3.0.3", resolved issue.

Sucharitha Suchi
- 328
- 3
- 12