-
-
Notifications
You must be signed in to change notification settings - Fork 43
[Feature Request] Prefer to use the dotnet local tool installed in the solution for coverlet, if available. #96
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
Comments
We are planning on moving away from the console and use the collector soon (--collector:"XPlat Code Coverage"). None-the-less i understand the need to run "your own version" as opposed the default. With regards to ignoring files, please have a look at the following: @tonyhallett What do you think? |
Unfortunately ignoring files like that does not actually solve the issue (see coverlet-coverage/coverlet#1084), and I have, for now, just provided a Powershell script that updates the executable used by the extension to use the version of coverlet that works. I would appreciate even a "here be dragons" option, as long as its present. |
@nike4613 @FortuneN |
@FortuneN If we are allowing specifying a different coverlet console we have to allow for the 3 different ways that the tool could be installed. Global, global tool path and local. In a similar manner we should allow for the user to specify the --test-adapter-path when using coverlet data collector. This is slightly different in that we should be able to determine this ourselves if the user has installed the nuget package. Your thoughts. |
CoverletCollectorPath is fine |
@FortuneN You ok with the UseCoverletGlobal etc ? |
Go for it
…On Sat, 27 Feb 2021 at 01:35, Tony Hallett ***@***.***> wrote:
@FortuneN <https://github.com/FortuneN> You ok with the UseCoverletGlobal
etc ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#96 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLAAT3BDREZZGVZRVA2XWDTBAV5VANCNFSM4XYFDIXQ>
.
|
Will do. Please can you publish to marketplace |
Done!
…On Sat, 27 Feb 2021 at 01:37, Tony Hallett ***@***.***> wrote:
Will do. Please can you publish to marketplace
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#96 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLAAT57M4D4NA5M4NRTVHDTBAWFBANCNFSM4XYFDIXQ>
.
|
Installed product versions
Description
If the solution being worked in has a locally installed dotnet tool for coverlet, use it in place of the set version the extension defaults to using.
Current behavior
Currently, the extension always uses an old version of coverlet, which, in my case, does not have a certain patch I need.
Expected behavior
I would expect that a locally installed dotnet tool would override whatever the extension used by default.
Side Notes
This can be easily seen by just creating a new solution, installing a new version of
coverlet.console
locally, then trying out the extension. In my specific case, I need a feature in the coverlet preview builds that automatically ignores source files referenced by PDBs that end in.g.cs
, because I make heavy use of source generation. Currently, without going out of my way to manually install the tool to the folder that the extension expects it to live in, I simply cannot use the extension with my code generation.A different solution would be to switch to using
--collector:"XPlat Code Coverage"
during the normal VSTest runs, if that is possible, then just reading the results, though this would have the drawback of slowing down normal test runs.The text was updated successfully, but these errors were encountered: