dotnet-tunit

Develop, run, debug, and repair .NET unit tests with TUnit.

466|35|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/managedcode/dotnet-skills --skill dotnet-tunit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-tunit
Source: https://github.com/managedcode/dotnet-skills/tree/main/skills/dotnet-tunit
Command: npx skills add https://github.com/managedcode/dotnet-skills --skill dotnet-tunit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write, run, debug, and repair .NET tests specifically using the TUnit testing framework, ensuring tests are accurate, efficient, and maintainable.

Core Features & Use Cases

  • TUnit Test Execution: Run tests with TUnit's specific filtering and parallelization features.
  • Test Repair & Debugging: Identify and fix issues within TUnit tests.
  • Bootstrap New Tests: Add TUnit tests to projects that don't have them configured.
  • Migration Assistance: Provides guidance for migrating from xUnit or NUnit to TUnit.
  • Use Case: You have a .NET project that uses TUnit, and you need to add a new set of tests, ensure they run correctly in CI, and understand how to filter them for specific runs.

Quick Start

Run all TUnit tests in the current project using the default TUnit execution command.

Frequently Asked Questions about dotnet-tunit

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

FAQPage Schema
How do I run and filter .NET unit tests using TUnit?

Run .NET unit tests using TUnit by leveraging its specific filtering and parallelization features. The framework supports executing targeted test runs, useful for isolating specific tests during development or CI pipelines.

How do I bootstrap TUnit tests in a .NET project?

Bootstrap TUnit tests in a .NET project by adding and configuring the framework for projects lacking existing test setups. This quickly establishes source-generated tests within the Microsoft.Testing.Platform ecosystem.

Can I migrate existing xUnit or NUnit tests to TUnit?

You can migrate existing xUnit or NUnit tests to TUnit using provided migration assistance. This transitions your .NET testing framework to leverage TUnit's source-generated tests and parallel execution capabilities.

How do I debug and repair failing TUnit tests?

Debug and repair failing TUnit tests by identifying issues within the test logic and applying specific assertion patterns. This maintains accurate, efficient, and maintainable .NET tests across executions.

Does TUnit work with Microsoft.Testing.Platform for .NET testing?

TUnit works directly with Microsoft.Testing.Platform for .NET testing scenarios. It handles source-generated tests and parallel execution within the .NET ecosystem, ensuring accurate and efficient test runs.