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

前端 未结 4 894
感情败类
感情败类 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:35

    The solution that worked for me was to add an AssemblyInfo.cs file with the following contents:

    using Xunit;
    
    [assembly: CollectionBehavior(DisableTestParallelization = true)]
    

    Once I did this, the tests started running in my CI builds again (in my case, Azure Pipelines).

提交回复
热议问题