You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running dotnet test, if I specify a DataCollector using the command line, the in-process collector will be injected. But if I specify a DataCollector using a ".runsettings" file, the in-process collector won't be injected.
Steps to reproduce
Good case: dotnet test <path_to_csproj_file> --collect "XPlat Code Coverage"
coverlet.collector gets injected into the test host process, and there are no problems.
Bad case: dotnet test <path_to_csproj_file> --settings test.runsettings
(test.runsettings contains a DataCollector element with friendlyName="XPlat Code Coverage".)
The text was updated successfully, but these errors were encountered:
caghand
changed the title
DataCollector in ".runsettings" file does not get injected into the test host
DataCollector in ".runsettings" file does not get injected into the test host process
Oct 19, 2020
Coverlet is not standard data collector. It is InProcess data collector which requires additional InProcDataCollector tag. I was able to run it correctly with below run settings.
The issue will be gone when coverlet will keep results in shared memory. In such case in process data collector is not needed.
I hope it will be resolved by: coverlet-coverage/coverlet#808.
Description
When running
dotnet test
, if I specify a DataCollector using the command line, the in-process collector will be injected. But if I specify a DataCollector using a ".runsettings" file, the in-process collector won't be injected.Steps to reproduce
Good case:
dotnet test <path_to_csproj_file> --collect "XPlat Code Coverage"
Bad case:
dotnet test <path_to_csproj_file> --settings test.runsettings
(test.runsettings contains a DataCollector element with friendlyName="XPlat Code Coverage".)
Environment
.NET Core 3.1
The text was updated successfully, but these errors were encountered: