skynyrd
1/19/2018 - 7:19 AM

Disable parallel running in Xunit

Disable parallel running in Xunit

In root directory of the test project:

Create xunit.runner.json and write below:

{
  "parallelizeAssembly": false,
  "parallelizeTestCollections": false
}

Add to csproj:

  <ItemGroup>
    <None Update="xunit.runner.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
  </ItemGroup>

Cheers :tada:

Tested on dotnet core 2.1.4