01
It starts by itself
.NET pull request opened. Runs in GitHub Actions or Claude Code routine.
- ↻ .NET pull request opened
pull request touches .cs or .csproj files
Run the right dotnet test command.
Install the .NET Run Tests skill and make it a habit: follow https://gethabit.dev/skills/dotnet/run-tests.md
6K installs6K starsMIT licenceSource on GitHub ↗

.NET Run Tests
by dotnet · 6K installs
The skill
.NET Run Tests picks and runs the right dotnet test command for classic, VSTest, bridged MTP or native MTP projects, with correct filters for MSTest, xUnit, NUnit and TUnit plus TRX, dumps and coverage.
Only when you ask.
The habit
Run the right dotnet test command.
↻ Runs by itself.NET pull request opened
When does it start? How does it check its work? What does it remember?
Stops after one test command and one filter fix rerun per run.
Your agent checks .agents/skill-overlays/dotnet-test/run-tests.md and applies it if its frontmatter matches.
It reads global.json, the project, packages.config and Directory.Build.props in one batch.
It decides classic, VSTest, VSTest-to-MTP bridge or native MTP.
It picks dotnet test syntax and the framework-correct filter for the scope.
It adds TRX, diagnostics, dumps or coverage flags that match the platform.
It runs the command and reports command, exit code and the Passed, Failed, Skipped summary.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the .NET Run Tests skill helps.
No. dotnet test builds by default; it adds --no-build only when you ask.
No. It never adds or upgrades packages unless you ask.
Copy the prompt at the top into your agent. It installs the skill from dotnet/skills and sets up the habit. Or run npx skills add dotnet/skills --skill run-tests.
Yes. It is published under MIT. Habit is free too.
Install the .NET Run Tests skill and make it a habit: follow https://gethabit.dev/skills/dotnet/run-tests.md
All dotnet skills →More code skills →
Works in
Made by dotnet, published under MIT. Habit links to the original and never changes it. Is this your skill?