Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

xUnit.net

xunit.net

  • Free plan
  • Windows
  • macOS
  • Linux
  • Self-hosted
7.4 Club score Visit xunit.net

What xUnit.net is

xUnit.net is a free, open-source unit-testing tool for C#, F#, and Visual Basic. Its templates support those languages, with facts for invariant conditions and theories that run against specified data. Tests can run in parallel, and xUnit.net v3.4 adds an all-tests parallel mode. Class fixtures share one object across tests in a class, while v3 also supports assembly fixtures shared across test classes. The framework works with the .NET SDK command line, Visual Studio, Visual Studio Code, JetBrains Rider, NCrunch, Microsoft.Testing.Platform, and VSTest-compatible environments. Version 3 test projects are standalone executables that can run directly. Documentation describes Native AOT support for native xUnit.net runners, Microsoft Testing Platform v2 runners, and VSTest. Analyzers provide code analysis and fixes for common authoring issues. Version 3 supports .NET 8.0 or later and .NET Framework 4.7.2 or later. Version 2 remains in maintenance mode for critical bug fixes, while new features target v3. The project uses Apache 2 and is part of the .NET Foundation.

Who it suits

It suits developers writing .NET tests in C#, F#, or Visual Basic who want parameterized cases, parallel execution, multiple runner integrations, and analyzers.

Good to know, and what to watch

  • Free and open-source under Apache 2
  • Supports C#, F#, and Visual Basic
  • Parallel and parameterized testing
  • Standalone v3 test executables
  • Works across major .NET test environments
  • Version 2 receives no new feature work
  • Version 3 requires .NET 8 or later
  • Community policy rejects LLM-made contributions

xUnit.net

Free

Free plan

The verdict

xUnit.net provides a broad, free testing framework for .NET languages, with parallel execution, fixtures, analyzers, and many runner options. New capabilities are developed for v3, while v2 is limited to critical maintenance fixes.

What the maker publishes

Analyzers
xUnit.net analyzers provide code analysis and code fixes for common issues encountered by test authors and extensibility authors. source
Community policy
The project’s Code of Conduct states that it does not accept contributions made using LLMs. source
Founded
2006 source
Languages
The project templates support C#, F#, and Visual Basic. source
License and governance
xUnit.net is licensed under Apache 2, is part of the .NET Foundation, and is governed by a Project Lead. source
Native AOT
The documentation describes Native AOT support for native xUnit.net runners, Microsoft Testing Platform v2 runners, and VSTest. source
Parallel tests
xUnit.net supports running tests in parallel, with v3 4.0 adding an all-tests parallel mode. source
Purpose
xUnit.net is a free, open-source, community-focused unit testing tool for C#, F#, and Visual Basic. source
Runtime support
xUnit.net v3 supports .NET 8.0 or later and .NET Framework 4.7.2 or later. source
Shared test context
Class fixtures share one object across tests in a class, and v3 adds assembly fixtures shared across test classes. source
Standalone projects
xUnit.net v3 test projects are standalone executables that can run directly. source
Telemetry
Starting with v3 build 3.2.0, NuGet packages include Microsoft.Testing.Extensions.Telemetry, and metrics collection can be disabled with TESTINGPLATFORM_TELEMETRY_OPTOUT=1. source
Test runners
xUnit.net works with the .NET SDK command-line tools, Visual Studio, Visual Studio Code, JetBrains Rider, NCrunch, Microsoft.Testing.Platform, and VSTest-compatible environments. source
Test styles
The framework supports facts for invariant conditions and theories that run against specified data. source
v2 status
Core Framework v2 is in maintenance mode, with critical bug fixes but no new feature work; new features are developed for v3. source

Checked against the maker's pages on 4 Oct 2026.