mtp-hot-reload

Configures Microsoft Testing Platform hot reload to iterate on failing tests without rebuilding.

Updated Aug 9, 2026
One-click install
npx skills add https://github.com/adinj00/player-performance --skill mtp-hot-reload-adinj00
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mtp-hot-reload
Source: https://github.com/adinj00/player-performance/tree/main/.agents/skills/mtp-hot-reload
Command: npx skills add https://github.com/adinj00/player-performance --skill mtp-hot-reload-adinj00

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Fixing failing tests normally requires a slow rebuild-and-rerun cycle for every code change. This Skill sets up Microsoft Testing Platform (MTP) hot reload so the test host stays running and automatically re-runs affected tests as you edit code, dramatically shortening the test-fix loop. ## Core Features & Use Cases - Platform Verification: Detects whether the project uses Microsoft Testing Platform or VSTest, since hot reload only works with MTP. - Guided Setup: Walks through installing the Microsoft.Testing.Extensions.HotReload NuGet package and enabling the TESTINGPLATFORM_HOTRELOAD_ENABLED environment variable via shell or launchSettings.json. - Iterative Workflow: Runs tests with dotnet run in console mode, supports framework-specific filters (MSTest, NUnit, xUnit v3, TUnit), and re-runs tests automatically on code changes. - Use Case: You have three failing unit tests after a refactor. Instead of rebuilding after each fix attempt, you enable hot reload, edit the production code, and watch the tests re-run instantly until they pass. ## Quick Start Set up MTP hot reload in my test project so I can iterate on my failing tests without rebuilding between changes.

Frequently Asked Questions about mtp-hot-reload

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

FAQPage Schema
How do I run .NET tests without rebuilding after each code change?

Use Microsoft Testing Platform hot reload by installing the Microsoft.Testing.Extensions.HotReload package, setting TESTINGPLATFORM_HOTRELOAD_ENABLED=1, and running tests with dotnet run --project <path>. The test host stays running and re-runs affected tests automatically when you edit code.

How to enable hot reload for Microsoft Testing Platform tests?

Add the Microsoft.Testing.Extensions.HotReload NuGet package to your test project, then set the TESTINGPLATFORM_HOTRELOAD_ENABLED environment variable to 1, either in your shell or in Properties/launchSettings.json. Run tests with dotnet run instead of dotnet test.

Does hot reload work with VSTest or dotnet test?

No, hot reload requires Microsoft Testing Platform and does not work with VSTest or the dotnet test command. You must run the test project directly with dotnet run in console mode, or migrate from VSTest to MTP first.

Can I use MTP hot reload in Visual Studio Test Explorer?

No, MTP hot reload currently works in console mode only and has no Test Explorer integration in Visual Studio or VS Code. Visual Studio Test Explorer has its own separate built-in hot reload feature.

Why does hot reload not pick up my code changes?

Some changes are unsupported rude edits, such as adding new types or changing method signatures, which require restarting the test host. Also verify the environment variable is set and you used dotnet run rather than dotnet test.