
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 later), showing …
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), showing you …
Microsoft Testing Platform [2025 November 2] | xUnit.net
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 the package …
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 inspecting the …
Core Framework v3 1.0.0 [2024 December 16] | xUnit.net
We have shipped several prerelease versions over the last 6 months, and accumulated a good amount of documentation for both users who are migrating from Core Framework v2 as well as users who …
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 scope of things to …
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 namespace, …
Config with xunit.runner.json [2025 July 30] | xUnit.net
The current schema is online at https://xunit.net/schema/current/xunit.runner.schema.json, which can be set in the JSON file to aid with intellisense from development IDEs like Visual Studio and Visual …
Code Coverage with MTP [2025 May 2] | xUnit.net
With the new Microsoft Testing Platform support (MTP) in xUnit.net v3, getting code coverage has changed when running with MTP. This document discusses how to enable code coverage for both …