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.

BUG: (Completely) Missing Coverage

See original GitHub issue

Maybe related: https://github.com/tonerdo/coverlet/issues/39

Behavior.

image

What I do

  1. Add coverlet.msbuild NuGet to my test project.
  2. Run Tor (needed for my tests to successfully complete.)
  3. Run dotnet test /p:CollectCoverage=true.

I also tried creating a new project and everything works fine, however with my current project (https://github.com/zkSNACKs/WalletWasabi/) it silently fails.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:27 (8 by maintainers)

github_iconTop GitHub Comments

10reactions
varsnotwarscommented, Jun 24, 2018

@nopara73, this works correctly now after adding <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> Thanks @n00j 👍

8reactions
n00jcommented, Jun 22, 2018

Have you tried adding the following to your test.csproj?

<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

I was running into problems with coverlet not being able to locate dll’s and seems to fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest finds tests but doesn't collect coverage
I think it's related to this issue '--coverage --watch' should calculate coverage for all files at first iteration and also this issue No ......
Read more >
testing - Does path coverage guarantee finding all bugs?
This answer nails it. I would take the claim even further and say that due to this, path coverage never guarantees to find...
Read more >
Coverage reports missing some covered code after ...
It looks like the missing coverage is the code that's run in a subprocess in the tests (it's running the application and collecting...
Read more >
Bug Counts vs. Test Coverage
This article covers techniques for dealing with low bug counts, and methods for reassuring management that coverage is being achieved.
Read more >
[Study] Code Coverage and Post Release Defects
Just because you have 85% coverage does not mean you have not missed a crucial scenario which absolutely should have a test.
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