Roslyn analyzers for xUnit.net (please open issues in https://github.com/xunit/xunit)
Перейти к файлу
Brad Wilson 559d488140
v1.8.0
2023-12-22 14:42:43 -08:00
.config
.github/workflows Support Roslyn 3.11, 4.2, 4.4, 4.6, and 4.8 2023-12-14 15:31:46 -08:00
.vscode
src Support Roslyn 3.11, 4.2, 4.4, 4.6, and 4.8 2023-12-14 15:31:46 -08:00
tools Support Roslyn 3.11, 4.2, 4.4, 4.6, and 4.8 2023-12-14 15:31:46 -08:00
.editorconfig Support Roslyn 3.11, 4.2, 4.4, 4.6, and 4.8 2023-12-14 15:31:46 -08:00
.gitattributes
.gitignore
.gitmodules
BUILDING.md Support Roslyn 3.11, 4.2, 4.4, 4.6, and 4.8 2023-12-14 15:31:46 -08:00
LICENSE
NuGet.Config
README.md Support Roslyn 3.11, 4.2, 4.4, 4.6, and 4.8 2023-12-14 15:31:46 -08:00
build
build.ps1
version.json v1.8.0 2023-12-22 14:42:43 -08:00
xunit.analyzers.sln Support Roslyn 3.11, 4.2, 4.4, 4.6, and 4.8 2023-12-14 15:31:46 -08:00

README.md

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 2.0+. Supported in Visual Studio 2019 16.11+ or 2022 17.2+ (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.

How to install

How to uninstall

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

Analysis and Code Fix in Action

Analyzer in action animation

Latest Builds

Stable Latest CI Build status
v2 core framework
v3 core framework (alpha docs) N/A
xunit.analyzers
xunit.runner.visualstudio

For complete CI package lists, please visit the feedz.io package search. A free login is required.

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.