1. Habit
  2. Skills
  3. .NET Run Tests skill
dotnet · 6K installs

.NET Run Tests skill
Runs by itself, .NET pull request opened.

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

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

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

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one test command and one filter fix rerun per run.

  1. 01

    Read the overlay

    Your agent checks .agents/skill-overlays/dotnet-test/run-tests.md and applies it if its frontmatter matches.

  2. 02

    Read config

    It reads global.json, the project, packages.config and Directory.Build.props in one batch.

  3. 03

    Pick the mode

    It decides classic, VSTest, VSTest-to-MTP bridge or native MTP.

  4. 04

    Build the command

    It picks dotnet test syntax and the framework-correct filter for the scope.

  5. 05

    Add outputs

    It adds TRX, diagnostics, dumps or coverage flags that match the platform.

  6. 06

    Run and report

    It runs the command and reports command, exit code and the Passed, Failed, Skipped summary.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the .NET Run Tests skill helps.

Use it when

  • ✓ You run .NET tests
  • ✓ You need an exact dotnet test filter
  • ✓ You want TRX or coverage output

Skip it when

  • – You write test code
  • – You set up hot reload loops

Questions

.NET Run Tests skill, answered.

Does it build first?

No. dotnet test builds by default; it adds --no-build only when you ask.

Will it add test packages?

No. It never adds or upgrades packages unless you ask.

How do I install the .NET Run Tests skill?

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.

Is the .NET Run Tests skill free?

Yes. It is published under MIT. Habit is free too.

.NET Run Tests. Now as a habit.

Install the .NET Run Tests skill and make it a habit: follow https://gethabit.dev/skills/dotnet/run-tests.md

  • Free
  • No account
  • Undo in one line

All dotnet skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by dotnet, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.