Giter VIP home page Giter VIP logo

Comments (9)

ademanuele avatar ademanuele commented on May 31, 2024 2

I have not had a chance to look into this issue properly. But it seems like it is the VSTest runner built inside Visual Studio for Mac that needs to support using a .runsettings file, rather than this extension.

Having said that, Coverlet, the code coverage provider that this extension uses does have options for excluding/including files/classes which I am currently not using.

I think the best solution for gaining the functionality you want is to surface these options in the extension and potentially having a configuration file that can be stored in your source control to share with others on your team.

I will look into this in a bit more detail soon.

from vsmac-codecoverage.

ademanuele avatar ademanuele commented on May 31, 2024 1

Ok. You've spoken and I've listened.

I've been working on other projects for a while but had some time this weekend to work on this.

I got it working pretty well. Check out v1.1 of the extension and let me know if you have any issues. 🎉

from vsmac-codecoverage.

ademanuele avatar ademanuele commented on May 31, 2024

Hello. Thank you for your support suggestion.

As far as I'm aware, .runsettings files are a feature specific to vstest.

What sort of thing are you looking to configure?

from vsmac-codecoverage.

joshardt avatar joshardt commented on May 31, 2024

I would like to be able to ignore specific files and methods from the code coverage analyses. I use this extension for a Xamarin project and we do not want to include e.g. our Views (.xaml and .xaml.cs files). But also we would like to ignore getter and setter methods because it's not recommended to test them. In my current project we have a test coverage from around 51% and with respect to the .runsettings file a coverage from around 81%.

from vsmac-codecoverage.

ademanuele avatar ademanuele commented on May 31, 2024

Unfortunately, there has not been much movement on this yet. I have been quite busy lately.

Am hoping to look into it next week.

from vsmac-codecoverage.

joshardt avatar joshardt commented on May 31, 2024

I’ll spend you another coffee ☕ , if you do (:

from vsmac-codecoverage.

subramaniamb avatar subramaniamb commented on May 31, 2024

+1

from vsmac-codecoverage.

joshardt avatar joshardt commented on May 31, 2024

Thanks for the good work 👍

from vsmac-codecoverage.

ademanuele avatar ademanuele commented on May 31, 2024

Work for supporting .runsettings has been done.

Closing this issue.

from vsmac-codecoverage.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.