mcaf-dotnet-tunit

Manage the lifecycle of .NET tests written with TUnit.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing, running, debugging, and repairing .NET tests specifically when the project utilizes the TUnit testing framework or Microsoft.Testing.Platform.

Core Features & Use Cases

  • Test Execution: Run TUnit tests locally or within CI pipelines.
  • Test Repair: Identify and fix failing TUnit tests.
  • Test Creation: Add new TUnit tests, respecting source generation and parallel execution.
  • Use Case: A developer needs to add a new regression test to a .NET project that uses TUnit. This Skill will help them write the test, ensure it integrates correctly with the existing test suite, and verify it runs without breaking parallel execution.

Quick Start

Use the mcaf-dotnet-tunit skill to run all tests in the current TUnit project.

Frequently Asked Questions about mcaf-dotnet-tunit

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

FAQPage Schema
How do I write and run .NET TUnit tests using source generation?

To write and run TUnit tests, you use the [Test] and [Arguments] attributes within a source-generated test project. This Skill manages the test lifecycle, ensuring new tests integrate correctly and execute via Microsoft.Testing.Platform.

How do I fix failing TUnit tests in my .NET CI pipeline?

Repairing failing TUnit tests involves identifying the source of the failure and applying fixes that respect the framework's source generation rules. This Skill supports test repair for local and CI pipeline execution.

Does TUnit support parallel execution for .NET tests?

Yes, TUnit supports a parallel execution model for running .NET tests. This Skill ensures that any new or repaired tests adhere to these parallel execution capabilities to prevent breaking the test suite.

When do I need Microsoft.Testing.Platform for .NET unit testing?

Microsoft.Testing.Platform is needed when executing tests in repositories employing TUnit and source-generated test projects. This Skill manages test execution specifically through this platform.

What is the best way to add a regression test to a TUnit project?

The best way to add a regression test is by using the [Test] attribute and respecting source generation. This Skill helps create the test, integrate it with the existing suite, and verify it runs without breaking parallel execution.