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
Second, I'd like to view all logs from DataCollectionLogger and TestPlatformEqtTrace can you point me to some resources on "how to"(switch/config) to avoid to waste too much time on docs?
@MarcoRossignoli I ran a quick test to find out if there is an issue with inproc collector loading.
Just build the inproc collector with some added logs just like
public void Initialize(IDataCollectionSink dataCollectionSink)
{
EqtTrace.Info("Coverlet collector inproc initialize");
}
Run the following command to enable diagnosticts on your test project: dotnet test --collect:"Xplat code coverage" --diag:"diag.txt"
This will generate files diag.txt, diag.host.txt and diag.datacollector.txt. Since the inproc datacollector is loaded inside the test host, you should be able to find the added inproc logs inside diag.host.txt.
I am able to load the datacollector.
If you want to attach to the inproc datacollector, the debugger should attach to the testhost.exe process (the inproc datacollector is loaded inside this process). To debug the test host, you need to set this environment variable VSTEST_HOST_DEBUG=1 and attach to testhost.exe.
Hi guys I'm Marco from Coverlet, I've got a pair of questions
Can you confirm that in-process collector is loaded from 2.2.401(runtime 2.2.6) or greather?
I did some test but I cannot attach to inproc(I'm able to attach and debug to outofproc one) https://github.com/tonerdo/coverlet/blob/master/Documentation/Troubleshooting.md#use-local-collectors-build and I want to be sure that is my fault.
Second, I'd like to view all logs from
DataCollectionLogger
andTestPlatformEqtTrace
can you point me to some resources on "how to"(switch/config) to avoid to waste too much time on docs?cc: @tonerdo @vagisha-nidhi
The text was updated successfully, but these errors were encountered: