mtp-hot-reload

Enable hot reload for .NET test projects via Microsoft Testing Platform.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/kierunb/ReliableAppDemo --skill mtp-hot-reload
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mtp-hot-reload
Source: https://github.com/kierunb/ReliableAppDemo/tree/main/.github/skills/dotnet-test/skills/mtp-hot-reload
Command: npx skills add https://github.com/kierunb/ReliableAppDemo --skill mtp-hot-reload

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduces cycle time for failing tests by enabling Microsoft Testing Platform hot reload so code changes are picked up without rebuilding.

Core Features & Use Cases

  • Hot-reload-enabled test host for rapid iteration on failing tests
  • Simple setup: install the hot reload package, configure environment variable, and run tests in console mode
  • Use cases include triaging flaky tests, fine-tuning test data, and validating quick fixes in production-like test environments

Quick Start

Install the Microsoft.Testing.Extensions.HotReload package, enable hot reload by setting the environment variable TESTINGPLATFORM_HOTRELOAD_ENABLED=1, and run the test host in console mode to iterate on failing tests.

Frequently Asked Questions about mtp-hot-reload

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

FAQPage Schema
How do I enable hot reload for .NET tests to iterate fixes without rebuilding?

To enable .NET test hot reload, install the Microsoft.Testing.Extensions.HotReload package, set the TESTINGPLATFORM_HOTRELOAD_ENABLED environment variable to 1, and run your test host in console mode.

What is Microsoft Testing Platform hot reload and what problem does it solve?

Microsoft Testing Platform hot reload reduces cycle time for failing tests by picking up code changes instantly without rebuilding, allowing rapid iteration for triaging flaky tests and validating quick fixes.

Does hot reload work with NUnit, xUnit, and MSTest test projects?

Yes, hot reload applies to MSTest, NUnit, xUnit, and TUnit test scenarios across Microsoft Testing Platform projects, provided tests are executed in console mode with the required environment configuration enabled.

What are the requirements to run .NET tests with hot reload enabled?

Running .NET tests with hot reload requires installing the hot reload NuGet package, enabling the TESTINGPLATFORM_HOTRELOAD_ENABLED environment variable, and launching tests via the hot-reload-enabled host in console mode.

Can I use hot reload to fine-tune test data in production-like test environments?

Yes, hot reload supports fine-tuning test data and validating quick fixes in production-like test environments by applying code changes dynamically without requiring a full project rebuild.

Why are my .NET test changes not applying when using MTP hot reload?

If test changes are not applying, verify the TESTINGPLATFORM_HOTRELOAD_ENABLED environment variable is set to 1, the hot reload package is installed, and the test host is running in console mode.