run-tests

Detect .NET test platforms and frameworks, then run filtered tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Microsoft.NET.Test.Sdk, Microsoft.Testing.Extensions.TrxReport, Microsoft.Testing.Extensions.HangDump, Microsoft.Testing.Extensions.CodeCoverage, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the complexity of running .NET tests by detecting the appropriate test platform and framework, and applying filter options to run specific tests efficiently.

Core Features & Use Cases

  • Test Platform Detection: Identifies the test platform (VSTest vs MTP) based on project files.
  • Framework Identification: Determines the .NET framework in use for running tests.
  • Filtering & Running Tests: Applies filters to run a subset of tests, or run all tests based on user preferences.
  • Use Case: A developer wants to quickly run all tests for a .NET project, or run only specific tests to diagnose issues.

Quick Start

Run all tests in the current directory using the 'run-tests' skill.

Frequently Asked Questions about run-tests

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

FAQPage Schema
How do I run specific .NET tests using filters instead of executing the entire test suite?

You can run specific .NET tests by applying filter options to execute a targeted subset based on your preferences. This allows you to quickly diagnose issues by running only the necessary tests instead of the full suite.

How does .NET test platform detection work for projects using VSTest or MTP?

Test platform detection works by analyzing your project files to identify whether to use VSTest or MTP. It also determines the specific .NET framework in use to ensure tests run on the appropriate platform automatically.

What dependencies do I need to run .NET tests with VSTest and MTP platform support?

You need the .NET SDK and specific test platform extensions, including Microsoft.NET.Test.Sdk, Microsoft.Testing.Extensions.TrxReport, Microsoft.Testing.Extensions.HangDump, and Microsoft.Testing.Extensions.CodeCoverage to run tests effectively.

Can I run .NET tests across multiple .NET frameworks using a single command?

Yes, you can run .NET tests across multiple frameworks because the runner identifies the .NET framework in use from your project files. It automates execution by detecting the platform and applying your test filters.

What is the best way to automate running all tests for a .NET project?

The best way to automate running all tests is to use a runner that detects the test platform and framework from your project files. You can execute all tests in the current directory without manual configuration.