the-dext / RunCoverletReport

A Visual Studio 2019 Extension to run Coverlet and Report Generator
MIT License
40 stars 15 forks source link

feat: use runsettings file #19

Closed cdessana closed 1 year ago

cdessana commented 2 years ago

What?

Add option to use a runsettings file that should be located on solution root folder

Why?

This is a important feature to allow a more specific test configuration for each solution. In my case, I needed to exclude autogenerated files from code coverage, such as grpc files. As they are generated at each build it was not possible to use the annotation [ExcludeFromCodeCoverage].

Microsoft recommends the use of therunsettings file in case the test requires special configurations. Coverlet also supports runsettings files to set up advanced options.

It also would be useful to Issue #9

How?

PunkUnicorn commented 1 year ago

This is exactly what my team and I need to use this great extension. We use the runsettings file to exclude test that take too long to run locally so we want to avoid them being run, otherwise we would just use the option "Exclude Assemblies File Patterns". To be able to pass in a runsettings file, and exploit the TestCaseFilter element therein would solve our problem nicely!

timold commented 1 year ago

Yes - looking at this - I need this functionality in my life. Any chance it get pushed soon?