run-tests

Detect .NET test platforms and frameworks to generate dotnet test commands.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/kierunb/ReliableAppDemo --skill run-tests-kierunb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-tests
Source: https://github.com/kierunb/ReliableAppDemo/tree/main/.github/skills/dotnet-test/skills/run-tests
Command: npx skills add https://github.com/kierunb/ReliableAppDemo --skill run-tests-kierunb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detect and run .NET tests across MSTest, xUnit, NUnit, and TUnit, handling platform differences and test filtering to streamline test execution.

Core Features & Use Cases

  • Detects the test platform (VSTest or Microsoft.Testing.Platform) and the test framework used in a project.
  • Determines the correct dotnet test invocation for the detected SDK (8/9 vs 10+) and applies appropriate filtering syntax when running subset tests.
  • Use Case: you have a multi-framework solution and need to run a targeted set of tests while capturing diagnostics and results.

Quick Start

Run dotnet test on your project to execute all tests with optional path and filters.

Frequently Asked Questions about run-tests

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

FAQPage Schema
How do I run .NET tests across multiple frameworks like xUnit and NUnit?

To run .NET tests across multiple frameworks, this Skill detects the specific framework and platform used, then generates the correct dotnet test invocation with appropriate SDK-specific filtering syntax for xUnit, NUnit, MSTest, or TUnit.

What is the correct dotnet test filter syntax for VSTest versus Microsoft Testing Platform?

The dotnet test filter syntax differs by platform: VSTest uses the --filter option, while Microsoft Testing Platform uses MTP flags or --filter-class and --filter-method, particularly for xUnit on MTP.

Does dotnet test handle test filtering differently across .NET SDK versions 8, 9, and 10?

Yes, dotnet test handles filtering differently across SDK versions 8, 9, and 10+. This Skill determines the correct invocation and applies the appropriate filtering syntax and options based on the detected SDK version.

How do I capture TRX output and diagnostics when running a subset of dotnet tests?

To capture TRX output and diagnostics when running subset tests, this Skill provides ready-to-run guidance that applies appropriate logging and result generation options alongside the correct filtering syntax for your detected framework.

Can I run targeted tests in a multi-framework solution without knowing the exact test platform?

Yes, you can run targeted tests in a multi-framework solution without prior platform knowledge. The Skill automatically identifies whether VSTest or Microsoft Testing Platform is used and determines the correct dotnet test command.