Howto resolve .net test hangs on “Starting test execution, please wait…”

前端 未结 4 893
感情败类
感情败类 2021-02-15 14:31

I am trying to execute dotnet test from the command line on our Jenkins build server, but it just hangs on:

Starting test execution, please wait...

4条回答
  •  日久生厌
    2021-02-15 15:23

    Sometimes xUnit tests hang forever because the test runner pipeline can't handle parallel threads.

    To check if that's the issue try adding xunit.runner.json file to the tests project root

      
        
          Always
        
      
    

    And put inside 1 thread config.

    {
      "parallelizeTestCollections": true,
      "maxParallelThreads": -1
    }
    

提交回复
热议问题