migrate-vstest-to-mtp

Migrate .NET test projects from VSTest to Microsoft.Testing.Platform.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mstest, nunit, xunit, ytest.mtp.xunit2, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP), ensuring consistent testing across environments.

Core Features & Use Cases

  • Framework Support: MSTest, NUnit, xUnit.net v2, and xUnit.net v3.
  • CI/CD Pipeline Updates: Automates updates to CI/CD pipelines for seamless integration.
  • Behavioral Differences Handling: Mitigates common MTP behavioral differences, like zero tests exit code.

Quick Start

Run 'migrate-vstest-to-mtp' to automatically update your .NET test projects to MTP.

Frequently Asked Questions about migrate-vstest-to-mtp

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

FAQPage Schema
How do I migrate .NET test projects from VSTest to MTP?

Migrating .NET test projects from VSTest to Microsoft.Testing.Platform (MTP) is automated by updating project dependencies and configurations. Running the migration script seamlessly transitions MSTest, NUnit, and xUnit frameworks to MTP for consistent testing.

Does MTP migration support xUnit.net v2 and xUnit.net v3 frameworks?

MTP migration fully supports xUnit.net v2 and xUnit.net v3, alongside MSTest and NUnit. It transitions all these .NET testing frameworks to Microsoft.Testing.Platform, ensuring consistent execution across different testing environments.

How do I update CI/CD pipelines when moving .NET tests to Microsoft.Testing.Platform?

Moving .NET tests to Microsoft.Testing.Platform automates CI/CD pipeline updates for seamless integration. The migration process modifies pipeline configurations to align with MTP execution requirements, preventing integration failures during continuous testing.

Why does MTP return a zero tests exit code and how is it handled during migration?

Microsoft.Testing.Platform returns a specific exit code when zero tests are executed, a behavioral difference from VSTest. The migration process handles these MTP behavioral differences automatically, mitigating false pipeline failures caused by empty test runs.

What is the best way to transition VSTest projects to Microsoft.Testing.Platform without breaking existing tests?

Transitioning VSTest projects to Microsoft.Testing.Platform without breaking tests requires handling behavioral differences and updating framework references. The migration process supports MSTest, NUnit, and xUnit, ensuring robust testing consistency across environments.