NUnit3TestAdapter 5.2.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package NUnit3TestAdapter --version 5.2.0
                    
NuGet\Install-Package NUnit3TestAdapter -Version 5.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NUnit3TestAdapter" Version="5.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NUnit3TestAdapter" Version="5.2.0" />
                    
Directory.Packages.props
<PackageReference Include="NUnit3TestAdapter" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NUnit3TestAdapter --version 5.2.0
                    
#r "nuget: NUnit3TestAdapter, 5.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NUnit3TestAdapter@5.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NUnit3TestAdapter&version=5.2.0
                    
Install as a Cake Addin
#tool nuget:?package=NUnit3TestAdapter&version=5.2.0
                    
Install as a Cake Tool

NUnit 3 VS Test Adapter

The NUnit 3 Test Adapter runs NUnit 3.x and higher tests in Visual Studio 2012 and newer.

You can download the latest release version alternate text is missing from this package README image

NuGet Version alternate text is missing from this package README image

or the latest developer build version

MyGet version

Builds on master

NUnit3TestAdapter.CI

Support

Ask support questions Slack or raise an issue alternate text is missing from this package README image

Documentation

The NUnit3TestAdapter wiki is the best place to start.

Also check the release notes.

License

The NUnit 3 Test Adapter is Open Source software released under the MIT license.

Developing

Visual Studio 2022 is the recommended version to build and test the adapter.

Use .\build at the command line to build (compile) the solution.

Use .\build -t test at the command line to build and run unit tests.

Use .\build -t acceptance at the command line to build and run acceptance tests.

Use .\build -t package to create a package.

To run and debug tests on .NET Framework, load DisableAppDomain.runsettings.

From Visual Studio 2019 version 16.2 preview 4 it is possible to run tests against a selected target framework in the test project, so one can use this to run .NET Core tests. An alternative approach is to make use of the command line. If you need to frequently debug into .NET Core tests, you can temporarily switch the order of the <TargetFrameworks> in NUnit.TestAdapter.Tests.csproj.

The mock-assembly tests are not for direct running.

See https://github.com/nunit/docs/wiki/Packaging-the-V3-Adapter for more details.

Debugger source-stepping

The NuGet package contain source-linked PDBs for the adapter. If you’re in the middle of a debugging session and realize you’d like to be able to step into NUnit adapter code, set breakpoints and watch variables, follow these steps.

Notes

  • This adapter works with NUnit 3.0 and higher only. Use the NUnit 2 Adapter to run NUnit 2.x tests.

Announcements

  • From version 3.9 the NUnit3TestAdapter will stop supporting Visual Studio 2012 RTM (!), note only RTM, the later updates will still be supported fully. If you're using VS 2012 and want to update NUnit3TestAdapter, please update your Visual Studio RTM to any of the subsequent updates (Update 1-5)
  • From version 3.16 the NUnit3TestAdapter will stop supporting .net core 1
  • From version 4.0 the NUnit3TestAdapter will only be released as a nuget package, the VSIX is deprecated.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (233)

Showing the top 5 NuGet packages that depend on NUnit3TestAdapter:

Package Downloads
Microsoft.Playwright.NUnit

Playwright enables reliable end-to-end testing for modern web apps. This package brings in additional helpers and fixtures to enable using it within NUnit.

SpecFlow.NUnit.Runners

Combined package to setup SpecFlow with NUnit easily for running the tests with the NUnit runners.

AnalyzeRe.Client.Test

A testing framework for the Analyze Re Client Library

DynamoVisualProgramming.Tests

Unit and system test infrastructure for Dynamo.

CK.DB.Actor.Tests

This package contains tests for CK.DB.Actor (uses CK.DB.Tests.NUnit).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.0.0-beta.1 7,691 10/18/2025
5.2.0 2,168,959 10/6/2025
5.1.0 3,468,581 8/10/2025
5.1.0-alpha.5 863 8/7/2025
5.1.0-alpha.3 51,165 5/26/2025
5.1.0-alpha.2 2,706 5/22/2025
5.1.0-alpha.1 8,431 4/29/2025
5.0.0 16,092,724 2/7/2025
4.6.0 30,526,365 7/25/2024
4.5.0 70,131,858 5/30/2023
4.4.2 20,816,530 3/1/2023
4.3.2 314,022 12/9/2023
4.3.1 16,665,635 11/19/2022
4.3.0 5,911,881 10/29/2022
4.2.1 47,404,159 1/21/2022
4.2.0 2,704,387 12/27/2021
4.1.0 10,814,746 11/7/2021
4.0.0 29,438,175 6/8/2021
3.17.0 42,707,722 7/11/2020
3.16.1 37,503,272 1/18/2020
3.16.0 1,998,760 1/3/2020
3.15.1 24,833,098 8/30/2019
3.15.0 1,088,221 8/23/2019
3.14.0 1,989,535 8/8/2019
3.13.0 15,962,185 2/21/2019
3.12.0 5,982,212 12/19/2018
3.11.2 2,218,983 11/22/2018
3.11.1 401,376 11/21/2018
3.11.0 6,490,760 10/28/2018
3.10.0 14,827,429 3/8/2018
3.9.0 5,865,648 10/30/2017
3.8.0 3,358,503 7/19/2017
3.7.0 2,319,713 1/26/2017
3.6.0 820,029 11/15/2016
3.5.1 173,567 10/28/2016
3.5.0 222,021 10/23/2016
3.4.1 818,450 8/5/2016
3.4.0 127,372 7/3/2016
3.2.0 145,799 6/4/2016
3.0.10 382,095 4/19/2016
3.0.9-ctp-9 18,233 4/3/2016
3.0.8-ctp-8 170,957 12/2/2015
3.0.7-ctp-7b 12,304 11/17/2015
3.0.7-ctp-7 8,005 11/16/2015
3.0.6-ctp-6 7,706 11/11/2015
3.0.5-ctp-5 7,167 11/10/2015
3.0.4-ctp-4 11,658 7/21/2015
3.0.2-ctp-3 8,541 5/22/2015