Skip to content

Fix SkipAutoProps to work for records as well. #1139

Closed
@wdspider

Description

@wdspider
    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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions