Skip to content

VSTest integration does not respect SkipAutoProps setting #959

Closed
@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 :-)

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

    Issue actions