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
dotnet test XUnitTestProject1\ --collect:"XPlat Code Coverage"
173
+
```
174
+
175
+
You can also attach/debug your code adding some line of code on collectors i.e.
176
+
177
+
Attach using vs "Attach to Process"
178
+
```cs
179
+
while(!System.Diagnostics.Debugger.IsAttached)
180
+
{
181
+
System.Threading.Thread.Sleep(1000);
182
+
}
183
+
```
184
+
185
+
Fire attach
186
+
```cs
187
+
System.Diagnostics.Debugger.Launch();
188
+
```
189
+
190
+
**Every time you update code and rebuild new package remember to remove local nuget cache(`RMDIR "C:\Users\[winUser]\.nuget\packages\coverlet.collector" /S /Q`) otherwise you'll load old collector code because the package version wasn't changed**
0 commit comments