dotnet-mstest

Create, run, and repair .NET tests using the MSTest framework.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write, run, and repair .NET tests specifically using the MSTest framework, ensuring consistency and adherence to modern .NET testing practices.

Core Features & Use Cases

  • MSTest Integration: Supports repositories using MSTest.Sdk, MSTest packages, or legacy MSTest configurations.
  • Runner Consistency: Ensures correct usage of Microsoft.Testing.Platform or VSTest runners.
  • Use Case: A developer needs to add new unit tests to an existing .NET project that uses MSTest. They can use this Skill to ensure the new tests follow best practices, integrate seamlessly with the existing test suite, and are configured correctly for the project's testing environment.

Quick Start

Use the dotnet-mstest skill to add a new regression test for the authentication module.

Frequently Asked Questions about dotnet-mstest

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

FAQPage Schema
How do I add and configure MSTest unit tests in an existing .NET project?

To add MSTest unit tests in an existing .NET project, this Skill facilitates creating and configuring test classes using `MSTest.Sdk` and `MSTest` packages, ensuring seamless integration and adherence to modern testing practices.

What is the correct way to execute MSTest tests using Microsoft.Testing.Platform?

Executing MSTest tests correctly involves utilizing the Microsoft.Testing.Platform or VSTest runners. This Skill ensures runner consistency and addresses execution scenarios specific to your configured MSTest packages.

Does this approach work with legacy MSTest configurations and .NET Core projects?

Yes, this approach supports repositories using `MSTest.Sdk`, standard `MSTest` packages, or legacy MSTest configurations. It ensures compatibility with existing .NET solutions and projects configured with these frameworks.

Why are my MSTest DataRow regression tests failing to execute properly?

Failing MSTest DataRow regression tests can be repaired using this Skill. It facilitates test repair by addressing scenarios involving `[TestClass]`, `[TestMethod]`, `DataRow`, and execution configuration issues.

Can I use this MSTest integration if my repository has specific agent constraints?

Yes, you can use this MSTest integration with specific agent constraints. It respects `AGENTS.md` files for specific agent commands and constraints while facilitating test creation and execution.