Closed captainjono closed 3 years ago
Can you try with
dotnet vstest bin/debug/netcoreapp3.1/test.dll --collect:\"XPlat Code Coverage\"
As explained in guide for published project https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md
Can you explain why I cant use dotnet test
?
None of the examples here use vstest
?
Like i said, Im writing a tool that is supposed to let users execute any
test written by any test framework. My understanding was dotnet test
facilitated this.
https://github.com/dotnet/docs/issues/14786#issuecomment-642280142
On Tue, Mar 16, 2021 at 7:26 PM Marco Rossignoli @.***> wrote:
Can you try with
dotnet vstest bin/debug/netcoreapp3.1/test.dll --collect:\"XPlat Code Coverage\"
As explained in guide for published project https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/coverlet-coverage/coverlet/issues/1118#issuecomment-800058857, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOPWTVV7ERJJICP76OXUUDTD4I2TANCNFSM4YZNACLA .
It's an implementation detail of test platform, we don't load collectors we implement one, you should open an issue and ask here https://github.com/microsoft/vstest/issues
The solution is described here: https://github.com/coverlet-coverage/coverlet/issues/521#issuecomment-824135206
> dotnet add package coverlet.collector
dotnet test my.csproj --collect:\"XPlat Code Coverage\"
works. great!dotnet test bin/debug/netcoreapp3.1/test.dll --collect:\"XPlat Code Coverage\"
What am i missing here? Im writing a tool that integrates with coverage so i would like to support both scenarios.