# Tunit

Write, run, or repair .NET tests that use TUnit.

- Repository: https://github.com/managedcode/dotnet-skills (500 stars)
- Category: Testing
- License: MIT
- Last updated: 2026-10-29
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add managedcode/dotnet-skills --skill tunit -g -a claude-code -y`
Codex: `npx skills add managedcode/dotnet-skills --skill tunit -g -a codex -y`
Cursor: `npx skills add managedcode/dotnet-skills --skill tunit -g -a cursor -y`
Gemini CLI: `npx skills add managedcode/dotnet-skills --skill tunit -g -a gemini-cli -y`

## Description

Write, run, or repair .NET tests that use TUnit. Use when a repo uses `TUnit`, `TUnit.Playwright`, `[Test]`, `[Arguments]`, `ClassDataSource`, `SharedType.PerTestSession`, or Microsoft.Testing.Platform-based execution. Preserve TUnit's parallel-by-default model and constrain only destructive shared-state collisions. DO NOT USE FOR: xUnit projects; MSTest projects.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# TUnit

## Trigger On

- the repo uses TUnit
- you need to add, run, debug, or repair TUnit tests
- the repo uses Microsoft.Testing.Platform-based test execution
- the repo uses `ClassDataSource<...>(Shared = SharedType.PerTestSession)`, `TUnit.Playwright`, or `--treenode-filter`

## Do Not Use For

- xUnit projects
- MSTest projects
- generic test strategy with no TUnit-specific mechanics

## Inputs

- the nearest `AGENTS.md`
- the test project file and package references
- the repo's current TUnit execution command

## Workflow

The rest: https://github.com/managedcode/dotnet-skills/blob/HEAD/catalog/Testing/TUnit/skills/tunit/SKILL.md
