karma-runner / karma-runner/karma-coverage

Coverage HTML report colors don't make sense

Open
#220 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
771
Forks
242
PR merge metrics
No merged PRs in 30d

Description

Can you help me understand why the colors/counts in the margin are accurate, but the covered code lines still appear red? Hovering my mouse over a covered line makes a tooltip reading "statement not covered" appear.

![image](https://cloud.githubusercontent.com/assets/2903332/13651013/4b82403e-e613-11e5-92c5-cbacd5166609.png)

PS I have posted this as a StackOverflow question as well, in case you want to answer it there: http://stackoverflow.com/questions/35806728/why-does-my-coverage-report-show-covered-lines-in-red

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the coverage HTML report described in the issue and compare the margin colors/counts with the covered-line styling and tooltip. Done means covered lines are not shown in red and their tooltip no longer says "statement not covered".

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.