question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect coverage reporting 🐛

See original GitHub issue

The coverage report for 87135a5d0c3c5a27db83509fba01774dd20201d9 claims that DictionaryExtensions.cs has 75% coverage. It only has one method:

https://github.com/tonerdo/coverlet/blob/87135a5d0c3c5a27db83509fba01774dd20201d9/src/coverlet.core/Extensions/DictionaryExtensions.cs#L7-L14

According to the report, lines 9, 10 and 13 are covered but not line 12 (thus the 75%). How can 13 be covered but not 12? Is this a bug or am I misreading something? The only test for this method…

https://github.com/tonerdo/coverlet/blob/87135a5d0c3c5a27db83509fba01774dd20201d9/test/coverlet.core.tests/Extensions/DictionaryExtensionsTests.cs#L10-L17

…seems to cover it 100%.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
tonerdocommented, Mar 22, 2018

@atifaziz I have noticed this little kinks here and there. Currently trying to find the root cause, intend to have it fixed by this weekend

1reaction
tonerdocommented, Mar 22, 2018

@OneCyrus @atifaziz This issue has been fixed in #10 and you’ll see that the coverage for this repo increased as a result.

It was actually a pretty straightforward fix and a good side effect is it sets the foundation for branch coverage support. This fix will be in a new NuGet package I’ll release this weekend, in the future I’ll setup a nightly CI package publish so improvements can get out faster.

Cheers

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect coverage report · Issue #277 · pytest-dev/pytest-cov
Well one way to really nail this down is to have an early failure in base.py (just make a syntax error I guess)....
Read more >
Incorrect coverage number reported by codecov - Bug Fixes
The problem seems to be on calculating the number of tracked lines, which is not present in the report. ti is calculated as...
Read more >
Wrong coverage report in karma - istanbul
I've configured my karma.conf.js with enabled preprocessing to get a report about the code coverage of my tests. I've added this line to...
Read more >
Code coverage broken in Xcode 14.2?
Today I noticed that our code coverage reporting in Xcode is showing a clearly incorrect result: 0.0% when it should be saying a...
Read more >
Code coverage report shows incorrect class ... - YouTrack
Duplicates 1 issue (1 unresolved) · Right click -> Run tests with coverage · Inspect coverage report · See class coverage for a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found