This project contains source code analysis and cleanup rules for xUnit.net.
Requirements: xUnit.net v2 2.0+ and Visual Studio 2022 or later (earlier versions of Visual Studio may work but are not officially supported).
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.
-
xUnit.net v2 2.3.0 and higher: the analyzer package is referenced by the main
xunit
NuGet package out of the box. If you choose to referencexunit.core
instead, you can referencexunit.analyzers
explicitly. -
xUnit.net v2 2.2.0 and earlier: you have to install the
xunit.analyzers
NuGet package explicitly.
If you installed xUnit.net v2 2.3.0 or higher and do not wish to use the analyzers package, replace the package reference to xunit
with the corresponding versions of xunit.core
and xunit.assert
Stable | Latest prerelease | Latest CI | CI status | |
---|---|---|---|---|
v2 core framework | ||||
v3 core framework (alpha docs) | N/A | N/A | ||
xunit.analyzers | ||||
xunit.runner.visualstudio |
For complete CI package lists, please visit the feedz.io package search.
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 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).