About This Project
This project contains source code analysis and cleanup rules for xUnit.net. Analysis and fixes are only supported with C#.
Requirements: xUnit.net v2 or v3. Supported in Visual Studio 2019, 2022, and 2026 (as well as via command line builds with Roslyn 3.11+). Other environments (such as Mono or JetBrains Rider) may be able to use these analyzers as well; support and issue resolution will be provided by those third parties and not by xUnit.net itself.
Documentation: a list of supported rules is available at https://xunit.net/xunit.analyzers/rules/
Bugs and issues: please visit the core xUnit.net project issue tracker.
Building: see BUILDING.md.
Note: Our minimum supported versions of Visual Studio 2019, 2022, and 2026 align with the “Baseline” column of the “Support for Older Versions” table of Visual Studio Product Lifecycle and Servicing, as these are the minimum versions supported by Microsoft. If you are experiencing issues with an older version of Visual Studio, please upgrade and verify the issue still exists before opening issues.
How to install
How to uninstall
Analysis and Code Fix in Action

xUnit.net is a free, open source, community-focused unit testing tool for C#, F#, and Visual Basic.
xUnit.net works with the .NET SDK command line tools, Visual Studio, Visual Studio Code, JetBrains Rider, NCrunch, and any development environment compatible with Microsoft Testing Platform (xUnit.net v3) or VSTest (all versions of xUnit.net).
xUnit.net is part of the .NET Foundation and operates under their code of conduct. It is licensed under Apache 2 (an OSI approved license). The project is governed by a Project Lead.
For project documentation, please visit the xUnit.net project home.
Latest Builds
|
Latest stable |
Latest CI (how to use) |
Build status |
xunit.v3 |
 |
 |
 |
xunit |
 |
 |
 |
xunit.analyzers |
 |
 |
 |
xunit.runner.visualstudio |
 |
 |
 |
For complete CI package lists, please visit the feedz.io package search. A free login is required.
Help support this project by becoming a sponsor through GitHub Sponsors.
评论