dotnet-nunit

Write, run, and repair NUnit tests for .NET projects.

8|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-nunit-postpartum-genushyacinthus29
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-nunit
Source: https://github.com/Postpartum-genushyacinthus29/dotnet-skills/tree/main/skills/dotnet-nunit
Command: npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-nunit-postpartum-genushyacinthus29

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Write, run, or repair .NET tests that use NUnit. This skill helps teams ensure reliable NUnit-based test suites and smooth CI integration for C# projects.

Core Features & Use Cases

  • NUnit core testing framework setup with NUnit, NUnit3TestAdapter, and Microsoft.NET.Test.Sdk.
  • Guidance for writing parameterized tests, async tests, and integration with NUnit.Analyzers for best practices.
  • Real-world patterns and anti-pattern guidance to improve test reliability and CI stability.

Quick Start

Run the NUnit-based test suite in your repository using dotnet test.

Frequently Asked Questions about dotnet-nunit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up NUnit tests for my .NET project?

To set up NUnit tests, you need to configure your .NET project with the NUnit framework, NUnit3TestAdapter, and Microsoft.NET.Test.Sdk packages. This ensures proper test discovery and execution across your CI workflows.

How do I write parameterized and async NUnit tests in C#?

Writing parameterized and async NUnit tests involves using specific attributes and patterns for .NET projects. Following structured NUnit analyzers guidance ensures your parameterized test cases and asynchronous tests adhere to best practices.

Does NUnit3TestAdapter work with common CI workflows for dotnet test?

Yes, NUnit3TestAdapter integrates with common CI workflows to run NUnit tests seamlessly. By configuring the adapter alongside Microsoft.NET.Test.Sdk, you can reliably execute your test suites using the standard dotnet test command.

Why are my NUnit tests failing in CI and how do I repair them?

NUnit tests failing in CI often stem from anti-patterns or missing package references. You can repair NUnit tests by applying real-world pattern guidance and verifying your project setup includes the correct adapters and SDK.

What are common NUnit anti-patterns to avoid in .NET test suites?

Common NUnit anti-patterns include improper async test usage and incorrect parameterized test setups. Adhering to structured NUnit analyzers guidance and referenceable best practices helps avoid these pitfalls and improves test reliability.

Can I use NUnit.Analyzers to enforce best practices in my test project?

Yes, integrating NUnit.Analyzers provides static analysis to enforce best practices in your .NET test project. It helps identify anti-patterns and ensures adherence to proper NUnit testing frameworks and guidelines.