Skip to main content
Any Framework

xUnit.net is a developer testing framework, built to support Test Driven Development, with a design goal of extreme simplicity and alignment with framework features. Installing this package provides code analyzers to help developers find and fix frequent issues when writing tests and xUnit.net extensibility code.

Published
Aug 7, 2023
3y ago
Total Downloads
1.1B
1,059,435,869

Install

dotnet add package xunit.analyzers --version 1.3.0-pre.13

No framework information available.

README

About This Project

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.

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 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.

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#, 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).

Changes from Previous Version

No structural changes between v1.3.0-pre.6 and v1.3.0-pre.13.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.