dotnet-mstest

Detect MSTest runner models and generate reproducible test workflows.

8|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-mstest-postpartum-genushyacinthus29
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-mstest
Source: https://github.com/Postpartum-genushyacinthus29/dotnet-skills/tree/main/skills/dotnet-mstest
Command: npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-mstest-postpartum-genushyacinthus29

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

MSTest projects often require a coordinated approach to planning, running, and repairing tests across repositories that may use different MSTest models. This Skill provides a structured, repeatable workflow to identify the MSTest runner configuration and produce guidance, code deltas, and validation artifacts that keep MSTest work aligned with the repo's conventions.

Core Features & Use Cases

  • Detect MSTest project style (MSTest.Sdk, UseVSTest, or MSTest meta-package) and determine the correct runner configuration for the repository.
  • Read the repo's AGENTS.md to extract the actual test commands, constraints, and targets, then propose reproducible workflows and artifacts.
  • Generate concrete deliverables (code changes, docs, config tweaks, test updates, and CI guidance) to advance MSTest adoption or maintenance while preserving project context.

Quick Start

Provide a minimal MSTest workflow for a repository by identifying the MSTest model and generating an initial test skeleton and guidance.

Frequently Asked Questions about dotnet-mstest

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

FAQPage Schema
How do I configure MSTest runner models in a dotnet project?

To configure MSTest runner models, you must first detect whether the repository uses MSTest.Sdk, UseVSTest, or the MSTest meta-package. This detection determines the correct runner configuration and ensures test execution aligns with the project's existing conventions.

What is the best way to generate reproducible MSTest workflows?

Generating reproducible MSTest workflows involves reading the repository's AGENTS.md file to extract actual test commands and constraints. This allows you to produce actionable steps, code deltas, and validation artifacts tailored to the specific testing platform setup.

Can I use MSTest.Sdk to plan and repair unit tests across different repositories?

Yes, you can use MSTest.Sdk to plan and repair unit tests across repositories. By identifying the specific MSTest variant in use, you can generate safe, deterministic guidance and artifacts for code, documentation, configuration, and CI pipelines.

How does AGENTS.md document test commands for dotnet testing platforms?

AGENTS.md documents test commands by defining the specific execution constraints and targets for the dotnet testing platform. Reading this file allows you to extract the actual test commands and propose reproducible workflows that respect project context.

Why do my MSTest unit tests fail when switching from UseVSTest to MSTest.Sdk?

MSTest unit tests may fail when switching models due to misconfigured runner settings. You must identify the correct MSTest model and apply the appropriate configuration tweaks, code changes, and test updates to ensure compatibility with the new testing platform.

Does Microsoft.Testing.Platform support automated test repair and code generation?

Yes, Microsoft.Testing.Platform supports automated test repair by enabling the generation of concrete deliverables. You can produce code changes, configuration tweaks, and CI guidance to advance MSTest maintenance while preserving repository context.