mstest-testing-platform

Configure MSTest projects to use Microsoft.Testing.Platform in .NET 10.

14|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/NotMyself/claude-stack-dotnet --skill mstest-testing-platform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mstest-testing-platform
Source: https://github.com/NotMyself/claude-stack-dotnet/tree/main/.claude/skills/mstest-testing-platform
Command: npx skills add https://github.com/NotMyself/claude-stack-dotnet --skill mstest-testing-platform

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires MSTest, Microsoft.Testing.Platform.

What problem does it solve?

This Skill guides users through the complexities of the new Microsoft.Testing.Platform for MSTest in .NET 10, replacing the legacy VSTest runner. It simplifies setup, execution, and troubleshooting, ensuring efficient and reliable unit testing.

Core Features & Use Cases

  • Modern Test Runner: Leverage Microsoft.Testing.Platform for faster, more efficient test execution.
  • Streamlined Setup: Configure test projects with required properties (EnableMSTestRunner, OutputType=Exe) and package references.
  • Flexible Execution: Run tests using dotnet run --project or dotnet test, with options for filtering and parallelization.
  • Use Case: When migrating an existing .NET project to .NET 10, use this skill to quickly adapt your MSTest projects to the new testing platform, ensuring all tests run correctly and efficiently.

Quick Start

Guide me on setting up and running MSTest with Microsoft.Testing.Platform in my .NET 10 project.

Frequently Asked Questions about mstest-testing-platform

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

FAQPage Schema
How do I set up MSTest with Microsoft.Testing.Platform in .NET 10?

Configure your .NET 10 MSTest project by setting `EnableMSTestRunner=true` and `OutputType=Exe` in the project file, then add MSTest 4.0.0+ as a package reference. Microsoft.Testing.Platform replaces the legacy VSTest runner, enabling faster test execution through the new platform.

Can I run MSTest tests with the new Microsoft.Testing.Platform runner?

Yes. Once configured with EnableMSTestRunner and OutputType=Exe, execute tests using `dotnet run --project` or `dotnet test`. Microsoft.Testing.Platform provides modern test execution with support for filtering and parallelization options.

How do I migrate existing .NET MSTest projects to .NET 10 with the new test runner?

Update your project to target .NET 10, enable Microsoft.Testing.Platform by setting EnableMSTestRunner=true and OutputType=Exe, upgrade MSTest to version 4.0.0 or later, and verify tests run via `dotnet test`. This migration ensures compatibility with the new platform architecture.

What are the required dependencies for MSTest with Microsoft.Testing.Platform?

MSTest projects require MSTest and Microsoft.Testing.Platform package references. MSTest must be version 4.0.0 or higher to support the new runner. These dependencies enable configuration guidance for project setup, test execution, parallelization, debugging, and CI/CD integration.

Does Microsoft.Testing.Platform support test parallelization and debugging in .NET 10?

Yes. Microsoft.Testing.Platform in .NET 10 supports test parallelization through `dotnet test` options and debugging workflows. The platform enables efficient test execution while maintaining integration with CI/CD pipelines and development debugging tools.