SKILL5.7K installs5.7K

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-tests

About 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.


Categories


More from dotnet


Similar Skills