Skip to content

Instantly share code, notes, and snippets.

@skynyrd
Last active January 19, 2018 07:20
Show Gist options
  • Save skynyrd/33e11d502c4888db5707370873accc4c to your computer and use it in GitHub Desktop.
Save skynyrd/33e11d502c4888db5707370873accc4c to your computer and use it in GitHub Desktop.
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 🎉

Tested on dotnet core 2.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment