Skip to content
Skills Library
Programming · Testing

dotnet-enable-testing-platform

/dotnet-enable-testing-platform

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.

Author
Im5tu ↗
Repository
claude ↗
Licence
MIT
Last repository change
15.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 15.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

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.

Triggers from the description

testing platform,Microsoft.Testing.Platform,new test runner,migrate test runner,global.json testing,
Original author description

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.

How it works

  1. Steps
  2. Example global.json Configurations
  3. Error Handling
Original SKILL.md headings · 71 lines, 245 words
SKILL.md preview
---
name: dotnet-enable-testing-platform
description: 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."
license: MIT
metadata:
  author: Im5tu
  version: "1.0"
  repositoryUrl: https://github.com/im5tu/dotnet-skills
allowed-tools: Bash(dotnet:*), Read, Edit, Write, Glob, AskUserQuestion
---

Enable the Microsoft Testing Platform runner for a .NET solution by configuring `global.json`.

The Microsoft Testing Platform is a test runner with an in-process host and native parallel test execution.

## Steps

1. **Find the solution file** (*.sln) in the current directory
   - If no .sln found, warn and stop

2. **Check for existing global.json** in the solution root directory
   - Read contents if file exists

3. **Create or update global.json**:
   - If file **does not exist**, create it:
     ```json
     {
       "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

4. **Verify JSON validity**:
   ```bash
   dotnet build
   dotnet test
   ```

5. **If build fails**, report the error and ask user how to proceed

6. **Report results**:
   - Confirm global.json was created or updated
   - Show the final global.json content
   - Confirm build status
   - Confirm tests run successfully

## Example global.json Configurations

**Minimal (new file):**
```json
{
  "test": {
    "runner": "Microsoft.Testing.Platform"
  }
}
```

**Merged (existing file with SDK pinning):**
```json
{
  "sdk": {
    "version": "8.0.100",
    "rollForward": "latestMinor"
  },
  "test": {
    "runner": "Microsoft.Testing.Platform"
  }
}
```

## Error Handling

- If no .sln found: warn and stop
- If global.json exists but is invalid JSON: report error and ask user
- If build fails after update: show errors and ask user how to proceed

Versions

The database has no other skills named dotnet-enable-testing-platform.

Database snapshot: 13.11.2026 · package version 6ff3e4f11abc (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90test-runner-setup
    Use when asked to set up tests or a test runner for a project that has none - installs a test runner and one smoke test so behavior checks become a command, without requiring full coverage
  • 90testing
    Use when writing tests, running tests, adding test coverage, or debugging test failures. Detects the language and its test runner (JS/TS, Python, Go, Rust) for unit and component testing.
  • 100mutation-test-runner
    Run mutation test runner operations. Auto-activating skill for Test Automation. Triggers on: mutation test runner, mutation test runner Part of the Test Automation skill category. Use when writing or running tests. Trigger with phrases like "mutation test runner", "mutation runner", "mutation".
  • 100running-unit-tests
    Guide for running MSBuild unit tests efficiently. Use when running, scoping, filtering, or speeding up unit tests in this repository, or when finalizing a change with a heavier validation pass. Covers xUnit v3 + Microsoft.Testing.Platform (MTP) specifics and which `dotnet test`…
  • 100migrate-vstest-to-mtp
    Use this skill before answering, planning, or editing whenever .NET tests or CI are switching from VSTest to Microsoft.Testing.Platform (MTP), or an MTP migration behaves differently. Triggers include "switch from VSTest"; MSTest/NUnit/xUnit MTP enablement; OutputType=Exe only…
  • 100platform-detection
    Identify a .NET project's test platform, framework, command mode, and SDK-style vs classic project system. Use only for "which test platform/framework?", "VSTest or MTP?", or "what runner does this project use?", including bridge settings, UseVSTest opt-outs, and incompatible or…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.