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.

Coverage 0% for implicit used netstandard project

See original GitHub issue

I have a .NET core web API solution, that is covered by .NET integration tests (https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests).

The web API solution is using some own library projects, that are netstandard projects and part of the solution. PDB file for the library does exist.

When I try to figure out the coverage then:

  • the coverage for the controllers of the API and whole API project is correct.
  • even the coverage of another “shared” API project that is implicitly used, is correct.

The coverage for the netstandard library that is used by the API is 0 %. Even though the exact line in the controller, that uses the library is marked as covered.

I have reduced the solution to the bare minimum and can still reproduce the issue: https://github.com/schrufygroovy/coveragenotworking

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
MarcoRossignolicommented, Jan 9, 2021

Thanks for reporting this. We’ll take a look asap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot run Code Coverage on .NET Core 2.1 project that ...
5), when I attempt to run code coverage for xunit based tests (which target .NET Core 2.1 and reference a project that targets...
Read more >
Dependencies don't flow from new NETStandard project to ...
IO.FileSystem I use is 4.3.0. I tried various workarounds from a few github issues but none of them seem to work. The only...
Read more >
The future of .NET Standard - .NET Blog
0 is the shared base for all these new TFMs, that means that the runtime, library, and new language features are coordinated around...
Read more >
How do I prevent installing nuget packages that aren't 100 ...
Installing Entity Framework 6.1.3 into a .NET Core 2.0 project there is a NU1701 warning in the Errors window about Entity Framework 6.1.3 ......
Read more >
Raiqub.ImplicitGenerics 1.1.0
Provides a mechanism that allows generic type parameter to be inferred implicitly. Quickstart | Guide | NuGet. <hr />. Sometimes when developing ...
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