dotnet test --collect:"XPlat Code Coverage" hangs on "Starting test execution, please wait..." #1435
-
| I am trying to add coverage to the pipelines, but problem is that it hangs. I tried the donet test which works fine, I don't think the test is the problem as all of the tests hangs. That's the csproj |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
| same issue for me, and testhost.exe is not killable for some reason, I have to reboot windows |
Beta Was this translation helpful? Give feedback.
-
| This issue began for us only after upgrading from net7.0 to net8.0. Our tests run and pass successfully in Visual Studio locally, but not in our ubuntu Azure Pipeline build. - task: DotNetCoreCLI@2 inputs: command: 'test' arguments: '-c $(buildConfiguration) --collect:"XPlat Code Coverage" --logger trx' projects: '**/*Tests/*.csproj'It would get to here and hang indefinitely. Removing --collect:"XPlat Code Coverage" solved this timeout problem. |
Beta Was this translation helpful? Give feedback.
-
| Please use |
Beta Was this translation helpful? Give feedback.
Please use
<TargetFramework>net6.0</TargetFramework>or later for test projects. coverlet 6.0.4 requires a .NET 6.0 runtime.