Skip to content

VSTest integration does not respect SkipAutoProps setting #959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
StefanOssendorf opened this issue Sep 29, 2020 · 2 comments
Closed

VSTest integration does not respect SkipAutoProps setting #959

StefanOssendorf opened this issue Sep 29, 2020 · 2 comments

Comments

@StefanOssendorf
Copy link

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

@Malivil
Copy link

Malivil commented Oct 1, 2020

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
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants