Skip to main content

Visual Studio 2022+ Test Explorer runner for the xUnit.net framework. Capable of running xUnit.net v1, v2, and v3 tests. Supports .NET 4.7.2 or later, and .NET 8 or later.

Total Downloads
1.2B
1,158,512,888
Published
Oct 9, 2026
22d ago

Get Started

dotnet add package xunit.runner.visualstudio --version 4.0.1
ProductVersions
.NET
net8.0
Other
.NETFramework4.7.2

README

About This Project

This project contains the VSTest adapter for xUnit.net. This adapter allows any VSTest-enabled test runner to run xUnit.net tests (which includes Test Explorer in Visual Studio 2022 and later). It supports .NET 8+ and .NET Framework 4.7.2+. It can run tests from xUnit.net 1.9.2 and later.

About xUnit.net

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.

  • New to xUnit.net? Get started with the .NET SDK.
  • Need some help building the source? See BUILDING.md.
  • Want to contribute to the project? See CONTRIBUTING.md.
  • Want to contribute to the assertion library? See the suggested contribution workflow in the assertion library project, as it is slightly more complex due to code being spread across two GitHub repositories.

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.

Sponsors

Help support this project by becoming a sponsor through GitHub Sponsors.

Downloads by Version

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

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

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

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