I am trying to execute dotnet test from the command line on our Jenkins build server, but it just hangs on:
dotnet test
Starting test execution, please wait...
Sometimes xUnit tests hang forever because the test runner pipeline can't handle parallel threads.
xUnit
To check if that's the issue try adding xunit.runner.json file to the tests project root
xunit.runner.json
Always
And put inside 1 thread config.
{ "parallelizeTestCollections": true, "maxParallelThreads": -1 }