Enables the Microsoft Testing Platform runner in global.json. Also use when the user mentions "testing platform," "Microsoft.Testing.Platform," "new test runner," "migrate test runner," "global.json testing," or "modern test platform."
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Enables the Microsoft Testing Platform runner in global.json. Also use when the user mentions "testing platform," "Microsoft.Testing.Platform," "new test runner," "migrate test runner," "global.json testing," or "modern test platform."
Enable the Microsoft Testing Platform runner for a .NET solution by configuring global.json.
The Microsoft Testing Platform is a modern, extensible test runner that provides improved performance, better diagnostics, and native support for parallel test execution.
Steps
Find the solution file (*.sln) in the current directory
If no .sln found, warn and stop
Check for existing global.json in the solution root directory
Read contents if file exists
Create or update global.json:
If file does not exist, create it:
{"test":{"runner":"Microsoft.Testing.Platform"}}
If file exists, merge the test section while preserving all other content:
Parse existing JSON
Add or update the test.runner property
Preserve sdk, msbuild-sdks, and any other existing sections
Verify JSON validity:
dotnet build
dotnet test
If build fails, report the error and ask user how to proceed