dotnet-tunit

Detect TUnit usage and generate migration plans for .NET test projects.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps software teams smoothly adopt TUnit for .NET projects by validating usage, guiding migration, and standardizing test execution under Microsoft.Testing.Platform.

Core Features & Use Cases

  • Migrate existing tests to TUnit syntax, including [Test], [Arguments], and ClassDataSource mappings.
  • Configure appropriate fixtures for isolated or integration-style tests using SharedType.PerTestSession.
  • Establish consistent test execution and artifact capture patterns (logs, coverage, screenshots) for debugging.

Quick Start

Review the repo's AGENTS.md and run this skill to generate a TUnit migration plan and recommended test-execution commands.

Frequently Asked Questions about dotnet-tunit

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

FAQPage Schema
How do I migrate existing .NET tests to TUnit syntax?

TUnit is a modern .NET testing framework that uses attributes like [Test], [Arguments], and ClassDataSource to define tests and fixtures, running under Microsoft.Testing.Platform for consistent execution and artifact capture.

How do I configure TUnit fixtures for integration tests?

Configure TUnit fixtures for integration tests using ClassDataSource with SharedType.PerTestSession to establish isolated or shared test contexts, ensuring consistent execution and artifact capture for debugging.

Does TUnit work with Playwright for .NET testing?

TUnit supports Playwright through TUnit.Playwright patterns, allowing you to configure fixture strategies and establish consistent artifact capture patterns like screenshots for debugging integration-style tests.

How do I run focused TUnit tests in my repository?

Run focused TUnit tests by configuring execution commands under Microsoft.Testing.Platform, which allows targeted test runs and captures logs, coverage, and screenshots to validate the migration process.

When should I use ClassDataSource in TUnit test strategies?

Use ClassDataSource in TUnit when planning fixture strategies for isolated or integration-style tests, enabling shared test data contexts through SharedType.PerTestSession to standardize execution and debugging.