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).
This project contains source code analysis and cleanup rules for xUnit.net. It supports xUnit.net v2.0+ and Visual Studio 2015 Update 2 and above.
To start using the analyzers in your test project, simply add a reference to the xunit.analyzers NuGet package.
To open an issue for this project, please visit the core xUnit.net project issue tracker.
To build the project, you will need Visual Studio 2017. The VSIX project can be set as your startup project, to debug the analyzers inside a special instance of Visual Studio.
Channel | Status |
---|---|
CI | |
NuGet | |
MyGet (gallery) |
Take a look at Descriptors.cs for a list of supported rules.