Run Tests
Recommend or run the exact `dotnet test` command. ALWAYS use when the user asks to run, filter, or troubleshoot .NET tests or wants the precise command, flags, or argument order — the right syntax depends on the test platform (VSTest vs Microsoft.Testing.Platform) and SDK version and is easy to get wrong from memory. USE FOR: running all tests or a subset (a specific class, category, or trait) via filters; a single framework in a multi-TFM project (`--framework`); TRX reports; crash or hang dumps; whether MTP args need the `--` separator (SDK 8/9) or pass directly (SDK 10+); diagnosing why `dotnet test` fails or uses wrong argument syntax. Detects the platform (VSTest vs MTP) and framework (MSTest/xUnit/NUnit/TUnit), then picks the matching command and filter flag (--filter, --filter-class, --filter-trait, --filter-query, --treenode-filter). DO NOT USE FOR: writing test code (use code-testing-agent), iterating on failing tests without rebuilding (use mtp-hot-reload), CI/CD config, or d
- Type
- Skill
- Author
- dotnet
- GitHub stars
- 5.7K
- Installs
- 5.7K
- Last updated
- November 2, 2026
Install
npx skills add https://github.com/dotnet/skills --skill run-testsAbout this skill
Recommends or runs the exact `dotnet test` command, detecting the test platform (VSTest vs Microsoft.Testing.Platform) and framework (MSTest/xUnit/NUnit/TUnit) to pick the right command and filter flag. It covers running all or a subset of tests, single-framework runs in multi-TFM projects, TRX reports, crash and hang dumps, and the `--` separator differences between SDK 8/9 and 10+. Useful when the correct syntax is easy to get wrong from memory.
Summary written with AI assistance from the project's public description.
More from dotnet
Optimizing Ef Core Queries
Optimize and improve the performance of slow Entity Framework Core (EF Core) queries: make them generate less SQL, make fewer database round-trips,...
by dotnet
Skills
Repository for skills to assist AI coding agents with .NET and C#
by dotnet
DotNext
Agent skills for writing efficient .NET code with the .NEXT libraries
by dotnet
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh