Skip to content

VSTest integration does not respect SkipAutoProps setting #959

@StefanOssendorf

Description

@StefanOssendorf

Hi,
the VSTest integration does not ignore auto properties during code coverage.
You can finde here a MWE with a folder where I have generated a report from the coverage file (coverage.cobertura.xml in the linked rep).

According to this VSTest integration doc the skipping of auto properties should be supported.

As a preview from my test repo:

public class Class1
{
    public String Name { get; set; }
    public Int32 Age { get; set; }

    public Boolean DoFunnyThings()
    {
        Name = "Dummy";
        Age = 1337;

        return true;
    }
}

Name and Age are counted for coverage which I think should not be the case.

If you need any more information just ask :-)

Activity

Malivil

Malivil commented on Oct 1, 2020

@Malivil

This was asked for in #328 and merged in #912 on August 3rd
The last release was in May so this feature hasn't been included in a release yet

Also the release schedule for it was talked about a little bit in #930

I'm looking forward to it too =)

StefanOssendorf

StefanOssendorf commented on Oct 1, 2020

@StefanOssendorf
Author

Well... I am embarassed now 😅.
Thanks for pointing that out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Malivil@StefanOssendorf

        Issue actions

          VSTest integration does not respect SkipAutoProps setting · Issue #959 · coverlet-coverage/coverlet