run-tests

Run .NET test suites with correct platform detection and filter handling.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/1k-off/umbraco-observability-playground --skill run-tests-1k-off
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-tests
Source: https://github.com/1k-off/umbraco-observability-playground/tree/main/.agents/skills/run-tests
Command: npx skills add https://github.com/1k-off/umbraco-observability-playground --skill run-tests-1k-off

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you successfully run .NET tests and narrow down which tests to execute when you are unsure about the correct platform and filter syntax.

Core Features & Use Cases

  • Detects test platform and framework: Determines whether the project uses VSTest or Microsoft Testing Platform (MTP), and identifies common frameworks like MSTest, xUnit, NUnit, and TUnit.
  • Runs tests safely with correct dotnet test invocation: Applies the appropriate command pattern for your SDK version (including SDK 8/9 vs 10+ MTP argument rules).
  • Applies the right filtering and reporting options: Uses the correct flags for running subsets of tests and producing outputs like TRX or blame/hang diagnostics for troubleshooting execution failures.
  • Use case: When tests are failing or too slow, select just the relevant category/class/trait and run them with the correct TRX reporting and hang-crash diagnostics.

Quick Start

Tell the agent which project or solution to test and any filter you want applied (for example: run only integration tests in src/MyTests.csproj).

Frequently Asked Questions about run-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a specific subset of .NET tests using dotnet test filters?

To run a specific subset of .NET tests, you apply framework-specific filters via dotnet test. The Skill identifies your test framework, like xUnit or NUnit, and generates the correct command syntax to execute only the selected category, class, or trait.

What is the difference between VSTest and Microsoft Testing Platform (MTP) for running tests?

VSTest and Microsoft Testing Platform (MTP) are distinct test execution platforms requiring different dotnet test command syntax. The Skill detects whether your project uses VSTest or MTP, applying the correct SDK 8/9 or SDK 10+ argument rules to run tests safely.

How do I run only integration tests in a specific .NET csproj file?

To run only integration tests in a specific .NET csproj file, you pass the project path and a filter to the agent. The Skill determines the correct test platform and applies the matching filter syntax to execute your selected subset of tests.

Why does my dotnet test command fail with incompatible flags on newer SDKs?

Your dotnet test command may fail with incompatible flags due to changing argument rules between SDK 8/9 and SDK 10+ for MTP. The Skill prevents these errors by detecting the platform version and generating a command that avoids unsafe flag combinations.

Does dotnet test work with TUnit and MSTest frameworks?

Yes, dotnet test works with TUnit and MSTest frameworks. The Skill identifies common frameworks including MSTest, xUnit, NUnit, and TUnit, then generates the appropriate platform-aware command to execute your test suite correctly.