Guides
How to parallelise .NET tests
.NET tests run serially and take twenty minutes.
5 min read
.NET tests run serially and take twenty minutes.
Why it happens
xUnit parallelises within an assembly by default but not across them, and CI often runs one assembly at a time.
How to fix it
- Run dotnet test with --parallel and multiple test projects at once
- Split test projects across a matrix for very large suites
- Check for shared state — parallelism exposes tests that were never isolated
Your next build could be twice as fast, at half the price
Start free. Migrating away is the same one line, and we publish that diff too.
Related
How to make Windows CI fasterWindows jobs take three times as long as the equivalent Linux jobs.How to cache MSBuild outputEvery build recompiles all projects.Installing Visual Studio components in CIA required VS workload is missing and installing it takes fifteen minutes.How to sign Windows binaries in CIAuthenticode signing needs a certificate that must not be exposed.