![]() |
VOOZH | about |
Requires NuGet 2.12 or higher.
dotnet add package NUnit --version 4.6.1
NuGet\Install-Package NUnit -Version 4.6.1
<PackageReference Include="NUnit" Version="4.6.1" />
<PackageVersion Include="NUnit" Version="4.6.1" />Directory.Packages.props
<PackageReference Include="NUnit" />Project file
paket add NUnit --version 4.6.1
#r "nuget: NUnit, 4.6.1"
#:package NUnit@4.6.1
#addin nuget:?package=NUnit&version=4.6.1Install as a Cake Addin
#tool nuget:?package=NUnit&version=4.6.1Install as a Cake Tool
👁 Follow NUnit
👁 Slack
👁 NUnit issues marked with "help wanted" label
👁 NUnit issues marked with "good first issue" label
NUnit is a unit-testing framework for all .NET languages. It can run on macOS, Linux and Windows operating systems. NUnit can be used for a wide range of testing, from unit testing with TDD to full fledged system and integration testing. It is a non-opinionated, broad and deep framework with multiple different ways to assert that your code behaves as expected. Many aspects of NUnit can be extended to suit your specific purposes.
The latest version, version 4, is an upgrade from the groundbreaking NUnit 3 framework. It is a modernized version, aimed at taking advantage of the latest .NET features and C# language constructs.
If you are upgrading from NUnit 3, be aware of the breaking changes. Please see the NUnit 4 Migration Guide and take care to prepare your NUnit 3 code before you do the upgrade.
The latest stable release of the NUnit Framework is available on NuGet or can be downloaded from GitHub. Pre-release builds are available on MyGet.
Documentation for all NUnit projects can be found at the documentation site.
For more information on contributing to the NUnit project, please see CONTRIBUTING.md and the Developer Docs.
NUnit 3.0 was created by Charlie Poole, Rob Prouse, Simone Busoli, Neil Colvin and numerous community contributors. A complete list of contributors since NUnit migrated to GitHub can be found on GitHub.
Earlier versions of NUnit were developed by Charlie Poole, James W. Newkirk, Alexei A. Vorontsov, Michael C. Two and Philip A. Craig.
NUnit is Open Source software and NUnit 4 is released under the MIT license. Earlier releases used the NUnit license. Both of these licenses allow the use of NUnit in free and commercial applications and libraries without restrictions.
NUnit is made up of several projects. When reporting issues, please try to report issues in the correct project.
dotnet command line.dotnet command line.| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Framework | net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
Showing the top 5 NuGet packages that depend on NUnit:
| Package | Downloads |
|---|---|
|
SpecFlow.NUnit
Package to use SpecFlow with NUnit 3.13 and later |
|
|
AutoFixture.NUnit3
By leveraging some features of NUnit3, this extension turns AutoFixture into a declarative framework for writing unit tests. In many ways it becomes a unit testing DSL (Domain Specific Language). |
|
|
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. |
|
|
Xamarin.UITest
UI Automation Framework for testing Android and iOS apps. |
|
|
Reqnroll.NUnit
Package to use Reqnroll with NUnit 3.13 and later. |
Showing the top 20 popular GitHub repositories that depend on NUnit:
| Repository | Stars |
|---|---|
|
AvaloniaUI/Avalonia
Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The future of .NET UI
|
|
|
BeyondDimension/SteamTools
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
|
|
|
icsharpcode/ILSpy
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
|
|
|
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
|
|
|
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
|
|
|
QuantConnect/Lean
Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
|
|
|
ppy/osu
rhythm is just a *click* away!
|
|
|
OpenRA/OpenRA
Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.
|
|
|
Jackett/Jackett
API Support for your favorite torrent trackers
|
|
|
Flow-Launcher/Flow.Launcher
:mag: Quick file search & app launcher for Windows with community-made plugins
|
|
|
duplicati/duplicati
Store securely encrypted backups in the cloud!
|
|
|
QuestPDF/QuestPDF
QuestPDF is a modern library for PDF document generation. Its fluent C# API lets you design complex layouts with clean, readable code. Create documents using a flexible, component-based approach.
|
|
|
Sonarr/Sonarr
Smart PVR for newsgroup and bittorrent users.
|
|
|
Radarr/Radarr
Movie organizer/manager for usenet and torrent users.
|
|
|
kgrzybek/modular-monolith-with-ddd
Full Modular Monolith application with Domain-Driven Design approach.
|
|
|
JosefNemec/Playnite
Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
|
|
|
microsoft/garnet
Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.
|
|
|
chocolatey/choco
Chocolatey - the package manager for Windows
|
|
|
JamesNK/Newtonsoft.Json
Json.NET is a popular high-performance JSON framework for .NET
|
|
|
mRemoteNG/mRemoteNG
mRemoteNG is the next generation of mRemote, open source, tabbed, multi-protocol, remote connections manager.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.6.1 | 2,132,907 | 5/19/2026 |
| 4.6.0 | 1,121,663 | 5/3/2026 |
| 4.5.1 | 5,821,812 | 3/6/2026 |
| 4.5.0 | 1,524,899 | 2/18/2026 |
| 4.4.0 | 22,491,965 | 8/10/2025 |
| 4.4.0-beta.2.1 | 18,430 | 7/29/2025 |
| 4.4.0-beta.1 | 31,758 | 6/26/2025 |
| 4.3.2 | 33,540,500 | 12/28/2024 |
| 4.3.1 | 5,536,469 | 12/21/2024 |
| 4.3.0 | 1,057,588 | 12/14/2024 |
| 4.2.2 | 21,863,725 | 8/31/2024 |
| 4.2.1 | 1,687,315 | 8/23/2024 |
| 4.1.0 | 25,227,068 | 2/25/2024 |
| 4.0.1 | 10,115,564 | 12/2/2023 |
| 3.14.0 | 40,906,913 | 11/3/2023 |
| 3.13.3 | 123,663,508 | 3/20/2022 |
| 3.13.2 | 61,124,841 | 4/27/2021 |