
Home | xUnit.net
About x Unit. 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
What's New in v3? 2025 August 14 This guide aims to be a comprehensive list of the new features added to v3, written for existing developers who are using v2. In addition to this new …
Sharing Context between Tests - xUnit.net
Sharing Context between Tests 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 …
Microsoft Testing Platform [2025 November 2] | xUnit.net
The xUnit.net integration with Microsoft Testing Platform comes at three levels: You can replace the default xUnit.net command line experience with the Microsoft Testing Platform command …
Running Tests in Parallel - xUnit.net
Running Tests in Parallel Background Running unit tests in parallel is a new feature in xUnit.net version 2. There are two essential motivations that drove us to not only enable parallelization, …
Config with xunit.runner.json [2025 July 30] | xUnit.net
Config with xunit.runner.json 2025 July 30 Configuration files can be used to configure xUnit.net on a per test-assembly basis.
Code Coverage with MTP [2025 May 2] | xUnit.net
Enabling code coverage With xUnit.net v3 and MTP, there is a solution for code coverage that's supported directly by Microsoft. One of the big new features for MTP is for the ability of …
Writing a Custom Runner Reporter [2024 December 16] | xUnit.net
Writing a Custom Runner Reporter 2024 December 16 As of version 0.5.0-pre.27, we are now supporting custom runner reporters with xUnit.net v3. Before discussing the design of the …