Fix SkipAutoProps to work for records as well.
See original GitHub issue public sealed record RouteResponse
{
public string Id { get; init; } = string.Empty;
}
I’m still experiencing that autoprops like these in records are still counting against coverage even though SkipAutoProps is set to true.
I originally was under the impression that #328 would fix it for both classes and records; however, I was told to open this new issue since it doesn’t. Please fix so that we don’t have to keep manually exclude them via the [ExcludedFroCodeCoverage] attribute.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13
Top Results From Across the Web
Documentation - GitHub
NET Framework >= 4.6.1 As explained in quick start section, to use collectors you ... SkipAutoProps | Neither track nor record auto-implemented properties....
Read more >Exclude AutoGeneratedProgram.cs from code coverage
1 Answer 1 ; IncludeTestAssembly, Include coverage of the test assembly. ; SkipAutoProps, Neither track nor record auto-implemented properties.
Read more >OpenCover
I tried OpenCover v4.7.1221 to run tests on the NDepend code base but it doesn't work. Until now we used an older version...
Read more >Continuous Integration, Delivery, and Deployment
project and is also a prerequisite for CI, so this explores Git and how to work with it, both from a command line...
Read more >July 1, 2016, 8:03 pm - Telerik Forums RSS
I have recently been experimenting with converting from WEINRE to the Debug on Device feature, and it seems to work fairly well with...
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
It’s ok…every ref object inherits from
System.Object
I analyzed this a bit more and did both in one PR https://github.com/coverlet-coverage/coverlet/pull/1159.