
Home | xUnit.net
xUnit.net is a free, open source, community-focused unit testing tool for C#, F#, and Visual Basic. xUnit.net v3 supports .NET 8.0 or later, and .NET Framework 4.7.2 or later.
Getting Started with xUnit.net v3
Getting Started with xUnit.net v3 2025 August 13 In this document, we will demonstrate getting started with xUnit.net v3 when targeting .NET 8 (or later) and/or .NET Framework 4.7.2 (or …
Getting Started with xUnit.net v2
Getting Started with xUnit.net v2 2025 July 4 In this document, we will demonstrate getting started with xUnit.net v2 when targeting .NET 8 (or later) and/or .NET Framework 4.7.2 (or later), …
What's New in v3? [2025 August 14] | xUnit.net
This design was done so that third party assertion libraries did not need to create any hard dependencies on xUnit.net, as most are designed to be cross-test framework. When …
Microsoft Testing Platform (xUnit.net v3)
Unlike our support for VSTest, our support for Microsoft Testing Platform is built natively into xUnit.net v3. If you want to rely solely on Microsoft Testing Platform support, you can remove …
Sharing Context between Tests - xUnit.net
It is common for unit test classes to share setup and cleanup code (often called "test context"). xUnit.net offers several methods for sharing this setup and cleanup code, depending on the …
Core Framework v3 2.0.1 [2025 April 5] | xUnit.net
Apr 5, 2025 · In some scenarios this used to hard-crash the test process. xunit/xunit#3220 BUG: We fixed an issue where the randomizer provided by Randomizer.Current was not thread safe.
Writing a Custom Runner Reporter [2024 December 16] | xUnit.net
Note The default runner reporter will be whichever one is registered with a RunnerSwitch value of default. If the developer does not register one, xUnit.net will fall back to the built-in default, …
What NuGet Packages Should I Use? - xUnit.net
This package contains the xUnit.net assertion library (i.e., the Assert class). This is a separate NuGet package, because some developers wish to use the xUnit.net framework and test …
Migrating Unit Tests from v2 to v3 [2025 April 12] | xUnit.net
The two previous libraries (xunit.runner.reporters and xunit.runner.utility) were merged into a single library (xunit.v3.runner.utility). Most of the types in this library have retained the Xunit …