run-tests

Detect .NET test platform and framework, then execute tests via dotnet test.

2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/sayedihashimi/copilot-skill-eval --skill run-tests-sayedihashimi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-tests
Source: https://github.com/sayedihashimi/copilot-skill-eval/tree/main/examples/aspnet-razor-pages/plugins/dotnet-skills/dotnet-test/skills/run-tests
Command: npx skills add https://github.com/sayedihashimi/copilot-skill-eval --skill run-tests-sayedihashimi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify the correct test platform (VSTest or MTP) and framework (MSTest, xUnit, NUnit, or TUnit) for a given .NET project and execute tests accordingly.

Core Features & Use Cases

  • Detects the test platform and framework from project configuration and executes tests with the appropriate dotnet test invocation.
  • Supports VSTest and Microsoft.Testing.Platform (MTP) workflows, including framework-specific filters and multi-targeting.
  • Automatically adapts to SDK versions 8–10+ and applies correct filter syntax and CLI flags.

Quick Start

Run tests for a .NET solution using dotnet test and receive platform-aware results.

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 with the correct platform and framework automatically?

To run .NET tests, this Skill detects the test platform (VSTest or MTP) and framework (MSTest, xUnit, NUnit, or TUnit) from your project configuration, then executes the appropriate dotnet test command automatically.

Does dotnet test work with both VSTest and Microsoft Testing Platform (MTP) workflows?

Yes, dotnet test works with both VSTest and MTP workflows. The Skill identifies the correct platform from global.json and project props, applying the correct CLI flags and framework-specific filter syntax for your test run.

Can I run filtered .NET tests across multi-target frameworks?

Yes, you can run filtered .NET tests across multi-target frameworks. The Skill supports common flags like --filter and --framework, applying the correct framework-specific filter syntax for MSTest, xUnit, NUnit, or TUnit.

What .NET SDK versions are supported for automated test framework detection?

Automated test framework detection supports .NET project SDK versions 8 through 10 and above. The Skill adapts to the detected SDK version to apply the correct dotnet test invocations and filter syntax.

How do I execute dotnet test without rebuilding the project?

To execute dotnet test without rebuilding, the Skill supports the --no-build flag alongside standard platform-aware invocations. It tailors the dotnet test command to the detected VSTest or MTP setup and chosen test framework.

Why does my dotnet test filter syntax fail across different .NET test frameworks?

Dotnet test filter syntax fails across frameworks because MSTest, xUnit, NUnit, and TUnit use framework-specific filter rules. This Skill detects the active framework and applies the correct filter syntax for VSTest or MTP automatically.