gotwarlost / istanbul

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k stars 785 forks source link

Wrong coverage report #894

Open Ratikant01 opened 6 years ago

Ratikant01 commented 6 years ago

Is it correct coverage report? I am not sure what exactly it is pointing? any help? Using "karma-coverage-istanbul-reporter": "^1.2.1",

image

Ratikant01 commented 5 years ago

Any update on this? Anywhere I am doing anything wrong?

Ratikant01 commented 5 years ago

Seems issue with sourcemap!!!

zucker-rdrg commented 5 years ago

I have same issue after upgrade to Angular 6.1

ANGULAR 6 FIX: For Angular 6 app you can add "sourceMap": true, to angular.json:

"test": {
  "builder": "@angular-devkit/build-angular:karma",
  "options": {
    "sourceMap": true,
    ...