Coverage 0% for implicit used netstandard project
See original GitHub issueI 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:
- Created 3 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for reporting this. We’ll take a look asap.
I see on test you’re using msbuild integration, can you try with collectors one? https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md
Maybe you’re hitting known issue https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/KnownIssues.md#vstest-stops-process-execution-early