xUnit.net is a free, open source, community-focused unit testing tool for the .NET Framework. Written by the original inventor of NUnit v2, xUnit.net is the latest technology for unit testing C#, F#, VB.NET and other .NET languages. xUnit.net works with ReSharper, CodeRush, TestDriven.NET and Xamarin. It is part of the .NET Foundation, and operates under their code of conduct. It is licensed under Apache 2 (an OSI approved license).
Follow on Twitter: @xunit, @jamesnewkirk, @bradwilson, @onovotny
Discussions are held on Slack. Not a member yet? Sign up now!
Resharper support is provided and supported by JetBrains.
CodeRush support is provided and supported by DevExpress.
NCrunch support is provided and supported by Remco Software.
The xUnit.net logo was designed by Nathan Young.
|Core framework||Analyzers||Devices runner|
|Stable (on NuGet)|
|Latest Build (on MyGet)|
|For information about features and bug fixes, see the release notes.|
New to xUnit.net? These guides will help you get started. (If you're not sure which tutorial to use, start with the Desktop CLR tutorial.)
|2.4.1||Build 4071 Build 4059|
|2.4||RTM RC 2 RC 1 Beta 2 Beta 1|
|2.3.1||RTM RC 2 RC 1|
|2.3||RTM RC 3 RC 2 RC 1 Beta 5 Beta 4 Beta 3 Beta 2 Beta 1|
|2.2||RTM Beta 4 Beta 3 Beta 2 Beta 1|
|2.1||RTM RC 2 RC 1 Beta 4 Beta 3 Beta 2 Beta 1|
|2.0.1||RTM RC 1|
|2.0||RTM RC 4 RC 3 RC 2 RC 1 Beta 5|
|xUnit.net||xunit.console||MSBuild||TestDriven.NET||Visual Studio 2||Devices|
|Desktop Class Library||1.9.2+||✓ 3a||✓ 3a||✓ 3a||✓ 3a (2012+)|
(Windows, Linux, OS X)
|2.2+||✓ 3a (2017+)|
|Universal Windows Platform||2.1+||✓ 3a (2015+)||✓ 3b|
|Xamarin MonoAndroid 1||2.0+||✓ 3b|
|Xamarin iOS Unified 1||2.0+||✓ 3b|
|↓ The project types below have been officially deprecated ↓|
(Windows 8.1, Windows Phone 8.1)
|2.0 - 2.1||✓ 3a (2013+)||✓ 3b|
|Windows Phone 8 (Silverlight)||2.0 - 2.1||✓ 3b|
|Xamarin MonoTouch (iOS Classic) 1||2.0 - 2.1||✓ 3b|
For information on contributing to xUnit.net, please read the governance document.
Portions copyright The Legion Of The Bouncy Castle