Regression: `dotnet test` hangs for 15 minutes after test run completed on mac and linux
See original GitHub issueOur builds on VSTS include dotnet test
, which restores, builds, and tests our product. With dotnet CLI 2.1.100 all went well. But when we upgraded to 2.1.300, the dotnet tool doesn’t exit for 15 minutes after the test run is completed with no output to explain the delay.
Expected behavior
The dotnet tool exits immediately, as can be seen on this 2.1.100 run:
Actual behavior
The dotnet tool exits after waiting 15 minutes, as can be seen on this 2.1.300 run:
Steps to reproduce
Please contact me via my microsoft.com email address for links to the builds if you’d like to investigate further.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:44 (15 by maintainers)
Top Results From Across the Web
Dotnet test hangs in gitlab gitlab-runner 13.9.0-rc2
Regression : `dotnet test` hangs for 15 minutes after test run completed on mac and linux · dotnet restore hangs indefinitely, spinning CPU....
Read more >Unit tests slow execution on build server - net core
Found a solution in Regression: dotnet test hangs for 15 minutes after test run completed on mac and linux. Adding the following parameter ......
Read more >Dotnet Core Testing Randomly Times Out
When running dotnet test the suite hangs and continuously prints out “Test run in progress.” Historically the testing suite has run in under ......
Read more >Cannot debug net6.0-macos Apps - Developer Community
When I hit debug, the following error is shown in the Terminal: Possible reasons for this include: * You misspelled a built-in dotnet...
Read more >dotnet test command - .NET CLI
The dotnet test command is used to execute unit tests in a given project.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can confirm that this still happens on .NET Core 3.1
-nodereuse:false
doesn’t work either.Hello Guys, I tried all options said here, but nothing work.
I solves my problem (happening only in azure devops integration) turning off parallel test executing
In my test project > Add folder
Properties
> AddAssemblyInfo.cs