xunit 2.9.3
Prefix ReservedRequires NuGet 2.12 or higher.
dotnet add package xunit --version 2.9.3
NuGet\Install-Package xunit -Version 2.9.3
<PackageReference Include="xunit" Version="2.9.3" />
<PackageVersion Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit" />
paket add xunit --version 2.9.3
#r "nuget: xunit, 2.9.3"
#:package xunit@2.9.3
#addin nuget:?package=xunit&version=2.9.3
#tool nuget:?package=xunit&version=2.9.3
About xUnit.net
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# and F# (other .NET languages may work as well, but are unsupported). xUnit.net works with Visual Studio, Visual Studio Code, ReSharper, CodeRush, and TestDriven.NET. It is part of the .NET Foundation, and operates under their code of conduct. It is licensed under Apache 2 (an OSI approved license).
For project documentation, please visit the xUnit.net project home.
- New to xUnit.net? Get started with .NET Framework and .NET Core.
- Need some help building the source? See BUILDING.md.
- Want to contribute to the project? See CONTRIBUTING.md.
- Want to contribute to the assertion library? See the suggested contribution workflow in the assertion library project, as it is slightly more complex due to code being spread across two GitHub repositories.
Latest Builds
| Stable | Latest CI (how to use) | Build status | |
|---|---|---|---|
| v3 core framework | |||
| v2 core framework | |||
| xunit.analyzers | |||
| xunit.runner.visualstudio | 
For complete CI package lists, please visit the feedz.io package search. A free login is required.
Learn more about Target Frameworks and .NET Standard.
- 
                                                - xunit.analyzers (>= 1.18.0)
- xunit.assert (>= 2.9.3)
- xunit.core (= 2.9.3)
 
NuGet packages (833)
Showing the top 5 NuGet packages that depend on xunit:
| Package | Downloads | 
|---|---|
| xunit.extensions NOTE: This empty package exists to assist users upgrading from xUnit.net v1.x to v2.x. | |
| Akka.TestKit.Xunit2 TestKit for writing tests for Akka.NET using xUnit. | |
| Xbehave An xUnit.net extension for describing your tests using natural language. Installing this package installs Xbehave.Core and xunit. | |
| AutoFixture.Xunit By leveraging the data theory feature of xUnit.net, this extension turns AutoFixture into a declarative framework for writing unit tests. In many ways it becomes a unit testing DSL (Domain Specific Language). For xUnit.net 2, please use the AutoFixture.Xunit2 NuGet Package. | |
| LightBDD.XUnit2 Allows creating acceptance tests in developer friendly environment by offering LightBDD.Framework features on top of xUnit 2 testing framework. High level features: * user friendly bdd scenario definitions; * test execution tracing and time measurement, helpful during longer test execution; * Xml/Html/Plain text reports generation; * cross-platform support (.NET Standard / .NET Framework); * asynchronous execution support; * in-code LightBDD configuration; * DI support; * inline and tabular parameters support. | 
GitHub repositories (2.8K)
Showing the top 20 popular GitHub repositories that depend on xunit:
| Repository | Stars | 
|---|---|
| PowerShell/PowerShell 
                                                            PowerShell for every system!
                                                         | |
| jellyfin/jellyfin 
                                                            The Free Software Media System - Server Backend & API
                                                         | |
| DevToys-app/DevToys 
                                                            A Swiss Army knife for developers.
                                                         | |
| AvaloniaUI/Avalonia 
                                                            Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
                                                         | |
| microsoft/semantic-kernel 
                                                            Integrate cutting-edge LLM technology quickly and easily into your apps
                                                         | |
| NickeManarin/ScreenToGif 
                                                            🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
                                                         | |
| dotnet/maui 
                                                            .NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
                                                         | |
| marticliment/UniGetUI 
                                                            UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
                                                         | |
| DapperLib/Dapper 
                                                            Dapper - a simple object mapper for .Net
                                                         | |
| ardalis/CleanArchitecture 
                                                            Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 9
                                                         | |
| bitwarden/server 
                                                            Bitwarden infrastructure/backend (API, database, Docker, etc).
                                                         | |
| dotnet/runtime 
                                                            .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
                                                         | |
| App-vNext/Polly 
                                                            Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+.
                                                         | |
| abpframework/abp 
                                                            Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
                                                         | |
| winsw/winsw 
                                                            A wrapper executable that can run any executable as a Windows service, in a permissive license.
                                                         | |
| dotnet/AspNetCore.Docs 
                                                            Documentation for ASP.NET Core
                                                         | |
| aspnetboilerplate/aspnetboilerplate 
                                                            ASP.NET Boilerplate - Web Application Framework
                                                         | |
| LuckyPennySoftware/MediatR 
                                                            Simple, unambitious mediator implementation in .NET
                                                         | |
| babalae/better-genshin-impact 
                                                            📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集/挖矿/锄地 | 一条龙 | 全连音游 - UI Automation Testing Tools For Genshin Impact
                                                         | |
| dotnet/BenchmarkDotNet 
                                                            Powerful .NET library for benchmarking
                                                         | 
| Version | Downloads | Last Updated | 
|---|---|---|
| 2.9.3 | 50,944,153 | 1/8/2025 | 
| 2.9.2 | 40,442,778 | 9/27/2024 | 
| 2.9.1 | 4,555,737 | 9/22/2024 | 
| 2.9.0 | 23,611,374 | 7/8/2024 | 
| 2.8.1 | 14,617,738 | 5/25/2024 | 
| 2.8.0 | 8,450,067 | 4/27/2024 | 
| 2.7.1 | 5,605,977 | 4/11/2024 | 
| 2.7.0 | 17,264,690 | 2/16/2024 | 
| 2.6.6 | 11,352,001 | 1/15/2024 | 
| 2.6.5 | 2,933,839 | 1/5/2024 | 
| 2.6.4 | 2,094,772 | 12/22/2023 | 
| 2.6.3 | 3,366,181 | 12/9/2023 | 
| 2.6.2 | 6,971,070 | 11/18/2023 | 
| 2.6.1 | 6,509,628 | 11/2/2023 | 
| 2.6.0 | 672,858 | 10/31/2023 | 
| 2.5.3 | 21,402,368 | 10/16/2023 | 
| 2.5.2 | 809,538 | 10/13/2023 | 
| 2.5.2-pre.6 | 30,826 | 10/8/2023 | 
| 2.5.2-pre.2 | 40,777 | 9/23/2023 | 
| 2.5.1 | 5,297,429 | 9/18/2023 | 
| 2.5.1-pre.33 | 18,178 | 9/10/2023 | 
| 2.5.1-pre.26 | 34,083 | 9/2/2023 | 
| 2.5.1-pre.20 | 94,229 | 8/7/2023 | 
| 2.5.1-pre.12 | 80,809 | 7/21/2023 | 
| 2.5.1-pre.11 | 2,495 | 7/21/2023 | 
| 2.5.0 | 15,695,411 | 7/6/2023 | 
| 2.5.0-pre.44 | 6,667 | 7/3/2023 | 
| 2.5.0-pre.37 | 24,861 | 6/21/2023 | 
| 2.5.0-pre.26 | 12,824 | 6/15/2023 | 
| 2.5.0-pre.22 | 46,684 | 5/31/2023 | 
| 2.5.0-pre.11 | 53,630 | 5/6/2023 | 
| 2.4.2 | 115,804,398 | 8/1/2022 | 
| 2.4.2-pre.27 | 50,558 | 7/24/2022 | 
| 2.4.2-pre.12 | 1,146,784 | 10/3/2021 | 
| 2.4.1 | 269,195,389 | 10/29/2018 | 
| 2.4.1-pre.build.4071 | 24,545 | 10/7/2018 | 
| 2.4.1-pre.build.4059 | 1,222,365 | 8/26/2018 | 
| 2.4.0 | 63,021,412 | 7/17/2018 | 
| 2.4.0-rc.2.build4045 | 7,290 | 7/13/2018 | 
| 2.4.0-rc.1.build4038 | 25,107 | 7/2/2018 | 
| 2.4.0-beta.2.build4010 | 281,322 | 5/29/2018 | 
| 2.4.0-beta.1.build3958 | 204,720 | 2/12/2018 | 
| 2.3.1 | 29,545,355 | 10/27/2017 | 
| 2.3.1-rc2-build3844 | 17,559 | 10/20/2017 | 
| 2.3.1-rc1-build3843 | 4,184 | 10/20/2017 | 
| 2.3.0 | 1,460,713 | 10/6/2017 | 
| 2.3.0-rc3-build3818 | 8,031 | 10/5/2017 | 
| 2.3.0-rc2-build3812 | 5,716 | 10/4/2017 | 
| 2.3.0-rc1-build3809 | 13,768 | 10/2/2017 | 
| 2.3.0-beta5-build3769 | 288,697 | 9/1/2017 | 
| 2.3.0-beta4-build3742 | 173,642 | 8/14/2017 | 
| 2.3.0-beta3-build3705 | 218,334 | 6/8/2017 | 
| 2.3.0-beta2-build3683 | 285,370 | 5/9/2017 | 
| 2.3.0-beta1-build3642 | 138,543 | 4/6/2017 | 
| 2.2.0 | 11,147,734 | 2/20/2017 | 
| 2.2.0-rc4-build3536 | 9,044 | 2/18/2017 | 
| 2.2.0-rc3-build3528 | 65,273 | 2/16/2017 | 
| 2.2.0-rc2-build3523 | 20,208 | 2/13/2017 | 
| 2.2.0-rc1-build3507 | 7,434 | 2/12/2017 | 
| 2.2.0-beta5-build3474 | 536,169 | 1/16/2017 | 
| 2.2.0-beta4-build3444 | 669,151 | 11/6/2016 | 
| 2.2.0-beta3-build3402 | 111,183 | 10/5/2016 | 
| 2.2.0-beta2-build3300 | 2,969,146 | 6/27/2016 | 
| 2.2.0-beta1-build3239 | 74,226 | 12/20/2015 | 
| 2.1.0 | 8,035,694 | 9/27/2015 | 
| 2.1.0-rc2-build3176 | 10,243 | 9/20/2015 | 
| 2.1.0-rc1-build3168 | 28,092 | 9/6/2015 | 
| 2.1.0-beta4-build3109 | 29,488 | 8/5/2015 | 
| 2.1.0-beta3-build3029 | 21,819 | 6/30/2015 | 
| 2.1.0-beta2-build2981 | 17,946 | 5/3/2015 | 
| 2.1.0-beta1-build2945 | 16,036 | 3/21/2015 | 
| 2.0.0 | 1,644,885 | 3/16/2015 | 
| 2.0.0-rc4-build2924 | 11,575 | 3/9/2015 | 
| 2.0.0-rc3-build2880 | 13,149 | 2/23/2015 | 
| 2.0.0-rc2-build2857 | 6,314 | 2/17/2015 | 
| 2.0.0-rc1-build2826 | 12,383 | 1/20/2015 | 
| 2.0.0-beta5-build2785 | 41,472 | 11/20/2014 | 
| 2.0.0-beta4-build2738 | 19,541 | 8/10/2014 | 
| 2.0.0-beta-build2700 | 6,047 | 6/30/2014 | 
| 2.0.0-beta-build2650 | 5,914 | 4/29/2014 | 
| 2.0.0-beta-build2616 | 5,105 | 3/22/2014 | 
| 2.0.0-alpha-build2606 | 4,695 | 3/16/2014 | 
| 2.0.0-alpha-build2595 | 4,920 | 3/9/2014 | 
| 2.0.0-alpha-build2576 | 13,487 | 1/19/2014 | 
| 2.0.0-alpha-build2569 | 4,346 | 1/17/2014 | 
| 2.0.0-alpha-build2562 | 4,746 | 1/3/2014 | 
| 2.0.0-alpha-build2552 | 4,603 | 12/8/2013 | 
| 2.0.0-alpha-build2548 | 4,839 | 11/25/2013 | 
| 2.0.0-alpha-build2533 | 3,311 | 11/4/2013 | 
| 2.0.0-alpha-build2529 | 3,107 | 10/26/2013 | 
| 2.0.0-alpha-build2521 | 3,422 | 9/22/2013 | 
| 2.0.0-alpha-build2510 | 3,840 | 8/19/2013 | 
| 2.0.0-alpha-build2503 | 3,331 | 7/23/2013 | 
| 2.0.0-alpha-build1657 | 3,471 | 7/13/2013 | 
| 2.0.0-alpha-build1654 | 3,496 | 5/19/2013 | 
| 2.0.0-alpha-build1650 | 3,281 | 4/24/2013 | 
| 2.0.0-alpha-build1648 | 3,103 | 4/18/2013 | 
| 2.0.0-alpha-build1644 | 3,095 | 4/14/2013 | 
| 2.0.0-alpha-build1631 | 3,040 | 4/8/2013 | 
| 2.0.0-alpha-build1624 | 3,098 | 4/5/2013 | 
| 2.0.0-alpha-build1611 | 15,357 | 8/6/2012 | 
| 1.9.2 | 3,185,371 | 8/24/2013 | 
| 1.9.1 | 841,743 | 7/4/2012 | 
| 1.9.0.1566 | 409,965 | 1/2/2012 | 
| 1.8.0.1549 | 237,563 | 9/13/2011 | 
| 1.8.0.1545 | 72,376 | 4/12/2011 | 
| 1.7.0.1540 | 653,515 | 1/31/2011 | 
