run-tests

Run .NET tests with dotnet test, filters, and platform detection.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/Mozart-Alkhateeb/ai_sdlc_todo --skill run-tests-mozart-alkhateeb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-tests
Source: https://github.com/Mozart-Alkhateeb/ai_sdlc_todo/tree/main/.agents/skills/run-tests
Command: npx skills add https://github.com/Mozart-Alkhateeb/ai_sdlc_todo --skill run-tests-mozart-alkhateeb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates running .NET tests using dotnet test, detects platform and framework, applies filters, and helps troubleshoot test execution across VSTest and MTP.

Core Features & Use Cases

  • Detect test platform (VSTest or MTP) and framework (MSTest, xUnit, NUnit, TUnit)
  • Run tests with dotnet test and optional filters
  • Provide guidance for diagnosing test execution issues across SDK versions
  • Use cases: running all tests, filtering a subset, diagnosing platform/framework in a multi-targeted project

Quick Start

Run dotnet test on the target project to execute tests, optionally with a filter to limit scope.

Frequently Asked Questions about run-tests

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

FAQPage Schema
How do I run dotnet tests with filters for xUnit or NUnit?

To run dotnet tests with filters, the Skill constructs dotnet test commands with optional --filter flags, applying the correct filtering syntax for frameworks like xUnit, NUnit, and MSTest.

Does dotnet test work with both VSTest and Microsoft.Testing.Platform?

Yes, dotnet test works with both VSTest and Microsoft.Testing.Platform. The Skill detects the target platform via SDK signals and applies the appropriate MTP-specific flags or VSTest syntax.

What is the best way to troubleshoot test execution issues across different .NET SDK versions?

The best way to troubleshoot test execution issues is to use automated platform and framework detection, which reads project context and provides diagnostic guidance for running tests across SDK versions.

How do I execute a subset of tests in a multi-targeted .NET project?

You can execute a subset of tests in a multi-targeted project by applying optional test filters. The Skill reads solution context, detects the framework, and limits test scope automatically.

Can I use dotnet test to run TUnit tests?

Yes, you can use dotnet test to run TUnit tests. The Skill detects the TUnit framework alongside MSTest, xUnit, and NUnit, ensuring the correct command execution for the platform.

Why does my dotnet test filter syntax fail on different test platforms?

Dotnet test filter syntax fails when using the wrong platform format. The Skill identifies whether VSTest or MTP is active and constructs the appropriate matching filter commands for the environment.