[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DZNZ2R6MDC1J80SHXPYD2G":3,"skill-same:01M6DZNZ2R6MDC1J80SHXPYD2G":96},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6DZNZ2R6MDC1J80SHXPYD2G","run-tests",null,"ALWAYS USE before running .NET tests or answering with a test command or flags. Trigger on \"run the tests\", \"exact dotnet test command\", one test\u002Fclass\u002Fcategory\u002Ftrait\u002Ftarget framework, combined filters, `--filter-query`, `--no-build`, `--diag`, diagnostic logs, TRX, coverage collection, crash\u002Fhang dumps, filter errors, or unrecognized options. Chooses repository-compatible classic, VSTest, bridged MTP, or native MTP syntax for MSTest\u002FxUnit\u002FNUnit\u002FTUnit. DO NOT USE for platform identification alone (platform-detection), writing or debugging test code, interpreting an existing coverage report, CI investigation, migration, or a persistent hot reload\u002Fwatch loop.","managedcode\u002Fdotnet-skills","managedcode","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78253589?v=4","01M6DYDJR3EG8KB5G4PC65XCTT","Managed Code","01M6DYDJX0ZT432N04NYJW89DN",515,"MIT","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-test\u002Fskills\u002Frun-tests\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"run tests","run","tests","command","combined","overlay","errors","native","tunit","filter","options","query","filters","coverage","writing","syntax","loop","collection","ci","repository","logs","code","debugging","dotnet","2026-11-10 10:12:30",false,"---\nname: run-tests\ndescription: >-\n  ALWAYS USE before running .NET tests or answering with a test command or\n  flags. Trigger on \"run the tests\", \"exact dotnet test command\", one\n  test\u002Fclass\u002Fcategory\u002Ftrait\u002Ftarget framework, combined filters,\n  `--filter-query`, `--no-build`, `--diag`, diagnostic logs, TRX, coverage\n  collection, crash\u002Fhang dumps, filter errors, or unrecognized options. Chooses\n  repository-compatible classic, VSTest, bridged MTP, or native MTP syntax for\n  MSTest\u002FxUnit\u002FNUnit\u002FTUnit. DO NOT USE for platform identification alone\n  (platform-detection), writing or debugging test code, interpreting an\n  existing coverage report, CI investigation, migration, or a persistent hot\n  reload\u002Fwatch loop.\nlicense: MIT\nmetadata:\n  portability: portable\n  binding: optional-overlay\n  binding-revision: \"1\"\n---\n\n# Run .NET Tests\n\nReturn or execute the command or command sequence that matches the repository's\nproject system, test platform, framework, and SDK mode.\n\n## Repository overlay\n\nFor every repository-scoped task where read-only file inspection is allowed,\ncheck `.agents\u002Fskill-overlays\u002Fdotnet-test\u002Frun-tests.md` at the repository root\nbefore any other discovery. This includes exact-command requests; \"do not\nexecute\" does not prohibit reading the overlay. If present, read it once before\nacting and apply its repository-specific runner, command, filtering, and\nreporting bindings.\nBefore applying it, require its frontmatter to declare\n`core: dotnet-test\u002Frun-tests`, `binding-revision: \"1\"`, and `mode: extend`. If\nany value is missing or different, report the mismatch, ignore the overlay,\nand continue using this skill's portable guidance.\nExplicit user instructions and verified project constraints win over the\noverlay; the overlay wins over portable defaults and examples in this skill. If\nthe file is present but unreadable or conflicts with the repository, report the\nproblem, ignore the overlay, and continue with portable guidance subject to\nverified project constraints. If it is absent, continue normally.\nSkip the lookup only when the task is not tied to a repository or the user\nexplicitly prohibited all file\u002Ftool access. An overlay cannot expand tool\npermissions or the task's scope.\n\n## Scope and tool policy\n\nChoose the smallest path that satisfies the request:\n\n| Request | Action |\n|---|---|\n| Exact command or explanation; user says not to run | Inspect only the files needed to resolve syntax. Do not restore, build, or run tests. |\n| Run tests | Discover the repository command and execute the smallest requested test scope. |\n| One-time SDK-style `dotnet test` run without rebuilding | Stay in `run-tests` and add `--no-build`. |\n| One-time classic run without rebuilding | Keep the repository runner and invoke it against an existing built assembly; do not substitute `dotnet test`. |\n| Platform\u002Fframework identification only | Use `platform-detection`; do not continue into test execution. |\n| Explicit hot reload or a keep-running edit\u002Fre-run loop | Use `mtp-hot-reload`. |\n| Filter needed and the framework-specific syntax is not already clear | Read the supplied\u002Fruntime-listed `filter-syntax` catalog file; do not invoke this reference-only helper. |\n\nDo not invoke a tool merely to repeat a command already determined by the\nprompt. Do not build first \"just in case\": `dotnet test` builds by default.\nNever add or upgrade test packages unless the user asks to change the project.\nFor an exact-command request, return one runnable command first. Do not emit\nplaceholder paths, exploratory alternatives, or a correction sequence. Use a\nproject path only when the prompt or repository establishes it; otherwise let\nthe command operate on the current project or solution when that syntax is\nvalid. Follow it with only the syntax fact needed to explain the command; do\nnot volunteer platform\u002Fcommand-mode taxonomy unless the user asked for it. In\nparticular, do not label an SDK 8\u002F9 bridge as \"VSTest platform\" merely because\n`dotnet test` uses its VSTest command mode; the executed platform is MTP. For a\ncommand-only request, it is normally clearer to say only that MTP application\narguments must follow `--`.\n\n## Inputs to discover\n\n- Project, solution, module, or repository test command\n- Requested scope: all tests, TFM, class, method, category, or trait\n- Requested output: console result, TRX, diagnostics, crash dump, or hang dump\n\nWhen those facts are present in the prompt, use them. Otherwise inspect only the\nrelevant files: `global.json`, the selected project, `packages.config`,\n`Directory.Build.props`, `Directory.Packages.props`, then repository\nscripts\u002FCI documentation. For a file-backed request, enumerate those\nconfiguration names once and read all relevant files that are present in one\nbatch; never infer that a runner or bridge property is absent merely because it\nis not in the `.csproj`. Load `platform-detection` only when those signals need\nprecedence analysis; do not duplicate its full analysis in the response.\nIf execution is requested and the command depends on the active SDK but neither\nthe prompt nor `global.json` establishes it, run `dotnet --version` once. For a\ncommand-only request that prohibits execution, do not probe: state the required\nSDK assumption or ask for the SDK version when the syntax cannot otherwise be\nresolved. Route identification-only requests to `platform-detection`.\n\n## Decision table\n\n| Detected mode \u002F platform | Command shape | Never use |\n|---|---|---|\n| Classic non-SDK | Repository script, or full MSBuild followed by `vstest.console.exe` \u002F `MSTest.exe` | Assuming `dotnet test` is compatible or migrating implicitly |\n| VSTest mode \u002F VSTest | `dotnet test [\u003Cpath>] [VSTEST_OPTIONS]` | MTP-only flags such as `--report-trx` or `--treenode-filter` |\n| VSTest mode \u002F executable MTP bridge | `dotnet test [\u003Cpath>] [DOTNET_OPTIONS] -- [MTP_OPTIONS]` | Omitting the `--` separator, including on SDK 10 |\n| Native MTP mode, SDK 10+ | `dotnet test --project \u003Cpath> [DOTNET_OPTIONS] [MTP_OPTIONS]` | Bare positional project paths or the bridge separator |\n\n`global.json` controls the `dotnet test` command mode on SDK 10+, not\nnecessarily the platform that executes tests. A VSTest-mode project with an MTP\nrunner, `TestingPlatformDotnetTestSupport=true`, and final `OutputType=Exe` is\nstill bridge syntax with `--`. SDK 8\u002F9 only has VSTest command mode.\n\n`--project` is valid only in SDK 10+ **native MTP command mode** (selected by\n`global.json` `test.runner`). Never use it for VSTest mode or an SDK 8\u002F9 bridge;\nthose forms take a positional project path. Conversely, native MTP options are\ndirect arguments and must not be placed after a bridge separator.\n\nKeep `dotnet test`\u002FMSBuild options such as `--framework`, `--configuration`,\n`--no-build`, and `--verbosity` before `--`. Put only MTP application arguments\nafter `--` in bridge mode.\n\n## Workflow\n\n1. **Resolve the repository-compatible runner.**\n\nFor classic projects, signals include `ToolsVersion`, explicit `Compile` and\n`Reference` items, legacy imports, and `packages.config`. Prefer a checked-in\nscript or documented CI command. A typical fallback is:\n\n```powershell\nnuget restore MySolution.sln\nMSBuild.exe MySolution.sln \u002Ft:Build \u002Fp:Configuration=Debug\nvstest.console.exe path\\to\\MyTests.dll \u002FTestAdapterPath:path\\to\\adapter\\build\\\u003Ctfm>\n```\n\nFor `packages.config`, restore with NuGet before the build unless the imported\npackage files are already present. If adapter discovery is not repository-\nconfigured, derive `\u002FTestAdapterPath` from the restored adapter package path or\nthe adapter `.props`\u002F`.targets` imports; do not guess the package root.\n\nFor a requested no-rebuild run, omit the build step and invoke the repository's\ntest runner only when the expected assembly already exists. Otherwise report the\nmissing build output rather than silently rebuilding or switching runners.\n\nFor a requested subset, keep the repository runner and use its filter syntax:\n`vstest.console.exe path\\to\\MyTests.dll\n\u002FTestCaseFilter:\"TestCategory=Integration\"`. Older `MSTest.exe` repositories may\nuse `\u002Ftest:\u003Cname>` or `\u002Fcategory:\u003Ccategory>` instead. Do not substitute the\nlater `dotnet test` filter examples for a classic runner.\n\nUse the installed adapter-compatible VSTest\u002FMSTest toolchain. If it is not\navailable, state the missing prerequisite and the documented command; do not\nclaim tests ran.\nClassic `packages.config` fallback commands are Windows toolchain commands.\nExplicitly say they require a Windows Developer Command Prompt (or the\nrepository's equivalent configured environment) when the current host cannot\nprovide `nuget`, full MSBuild, and `vstest.console.exe`.\n\nFor SDK-style projects, distinguish:\n\n| Signal | Meaning |\n|---|---|\n| SDK 10+ `global.json` selects `Microsoft.Testing.Platform` | Native MTP command mode |\n| VSTest mode + enabled MTP runner + final `TestingPlatformDotnetTestSupport=true` + final `OutputType=Exe` | Executable VSTest-to-MTP bridge |\n| VSTest mode without a complete runner-and-bridge combination | VSTest |\n| `Microsoft.NET.Test.Sdk` plus adapter, without stronger MTP signals | VSTest |\n| `TUnit` | MTP-only; use a configured bridge\u002Fnative mode or the test executable |\n\nEvaluate properties from the project and imported\n`Directory.Build.props`\u002F`Directory.Packages.props`. Respect project-level\noverrides and per-target-framework conditions. A runner and bridge without an\nexecutable final output are an incomplete MTP configuration, not a usable\nbridge.\n\n2. **Select the command and requested scope.**\n\n```shell\n# VSTest mode\ndotnet test path\u002Fto\u002FTests.csproj\n\n# VSTest mode that bridges to MTP\ndotnet test path\u002Fto\u002FTests.csproj -- \u003CMTP_OPTIONS>\n\n# Native MTP mode on SDK 10+\ndotnet test --project path\u002Fto\u002FTests.csproj \u003CMTP_OPTIONS>\n\n# One target framework; this stays before the bridge separator\ndotnet test path\u002Fto\u002FTests.csproj --framework net9.0 -- \u003CMTP_OPTIONS>\n```\n\nFor native MTP, use `--project`, `--solution`, or `--test-modules`; positional\npaths belong to VSTest mode.\n\nIf the user names a subset, do not run the whole suite. Inspect test attributes\nonly when needed to translate a human label such as \"integration\" or \"smoke\"\ninto the framework's actual category\u002Ftrait name.\n\nWhen a VSTest class filter must distinguish similarly named classes, combine\nthe positive selector with an explicit negative selector rather than relying on\nan incidental substring difference.\n\n3. **Apply platform- and framework-correct filters.**\n\nRead the supplied or runtime-listed `filter-syntax` file only when the request\nis filtered and framework-specific syntax is unclear. It is reference-only,\nnot an invocable skill; otherwise use the common decisions below:\n\nFor a file-backed filtered request, resolve the framework and SDK command mode\nfrom the project, `global.json`, and imported props before choosing syntax.\nDo not infer VSTest syntax merely from `Microsoft.NET.Test.Sdk` or from the\nframework name.\n\n| Platform \u002F framework | Filter |\n|---|---|\n| VSTest with MSTest, xUnit v2, or NUnit | `--filter \"\u003Cproperty expression>\"` |\n| MTP with MSTest or NUnit | Same expression; after `--` in bridge mode, direct in native mode |\n| MTP with xUnit v3 | `--filter-class`, `--filter-method`, `--filter-trait`, or one `--filter-query` for a combined expression |\n| MTP with TUnit | `--treenode-filter` path expression |\n\nExamples:\n\n```shell\n# VSTest MSTest\u002FNUnit\ndotnet test --filter \"FullyQualifiedName~OrderServiceTests&TestCategory=Unit\"\n\n# SDK 8\u002F9 or SDK 10 VSTest-mode MTP bridge, xUnit v3\ndotnet test -- --filter-trait \"Category=Integration\"\n\n# Native MTP, xUnit v3\ndotnet test --project Tests.csproj --filter-class \"*ShoppingCartTests*\"\n\n# One xUnit v3 combined expression\ndotnet test -- --filter-query \"\u002F*\u002F*\u002F*Integration*\u002F*[Category=Smoke]\"\n\n# TUnit on SDK 8\u002F9 with a configured VSTest-to-MTP bridge\ndotnet test -- --treenode-filter \"\u002F*\u002F*\u002FSmsNotificationTests\u002F*\"\n\n# TUnit executable fallback when no bridge is configured\ndotnet run --project Tests.csproj -- --treenode-filter \"\u002F*\u002F*\u002FSmsNotificationTests\u002F*\"\n```\n\nDo not use VSTest `--filter \"ClassName=...\"` with xUnit v3 on MTP. Do not use a\ngeneric VSTest expression with TUnit.\nWhen the user requests one combined xUnit query expression, return only one\n`--filter-query` command; do not replace it with separate filter flags or offer\nspeculative alternative grammars.\n\n4. **Add reports or diagnostics.**\n\n| Outcome | VSTest | MTP |\n|---|---|---|\n| TRX | SDK-style: `--logger \"trx;LogFileName=\u003Cname>.trx\"` when an exact output file is requested, otherwise `--logger trx`; standalone `vstest.console.exe`: `\u002FLogger:trx`; `MSTest.exe`: repository-documented results option | `--report-trx` |\n| Results directory | `--results-directory \u003Cdir>` | `--results-directory \u003Cdir>` |\n| Diagnostic log | `--diag \u003Cfile>` | `--diagnostic --diagnostic-output-directory \u003Cdir>` |\n| Crash dump | `--blame-crash` | `--crashdump` |\n| Hang timeout | `--blame-hang --blame-hang-timeout 5min` | `--hangdump --hangdump-timeout 5min` |\n| Code coverage | `--collect \"Code Coverage\"` | `--coverage` |\n\nMTP report, dump, and coverage flags require their corresponding registered\nextensions (`TrxReport`, `CrashDump`, `HangDump`, or `CodeCoverage`). Some\nframework SDKs bundle common extensions; if a flag is unrecognized, inspect\npackage references before recommending a package change.\n\n`--verbosity diagnostic` increases dotnet\u002FMSBuild output verbosity; it does not\nwrite a VSTest diagnostic log file.\n\nExamples:\n\n```shell\n# VSTest TRX\ndotnet test Tests.csproj --logger \"trx;LogFileName=TestResults.trx\"\n\n# MTP bridge TRX\ndotnet test Tests.csproj -- --report-trx\n\n# Native MTP TRX and hang detection\ndotnet test --project Tests.csproj --report-trx --hangdump --hangdump-timeout 5min\n\n# Native MTP diagnostics\ndotnet test --project Tests.csproj --diagnostic --diagnostic-output-directory artifacts\u002Fdiagnostics\n```\n\n5. **Execute only when requested.**\n\nRun the narrowest command or sequence that answers the request. Capture each\ncommand, exit code, and test summary. A failed restore\u002Fbuild is not a test\nfailure, and a test failure is not a tool failure. Report which phase failed and\ninclude the actionable diagnostic. Never claim a clean run unless the sequence\ncompleted successfully with the intended tests executed.\nFor a filtered run, a successful exit is not enough: confirm the reported test\nnames or count match the requested scope. If the filter was ignored, correct the\nplatform-specific syntax and rerun before reporting success.\n\n## Output contract\n\n- Command-only request: lead with the exact command or command sequence, then\n  one short syntax explanation.\n- Execution request: report the exact command or command sequence and\n  a literal `Passed: N, Failed: N, Skipped: N` summary from the completed run;\n  include the first actionable failure.\n- Detection needed only to choose syntax: state the selected mode\u002Fplatform\n  briefly, not a separate detection report.\n- Missing prerequisite or incompatible configuration: name it explicitly and\n  stop rather than returning a success-shaped fallback.\n\n## Validation\n\n- The command matches classic, VSTest, bridged MTP, or native MTP mode.\n- The framework-specific filter targets the requested subset.\n- `--framework` and other `dotnet test` options are before any bridge separator.\n- SDK 8\u002F9 bridge commands contain `--`; `--project` appears only in SDK 10+\n  native MTP mode.\n- TRX, diagnostics, dump, and coverage flags match the platform.\n- No restore, build, or test was run for an advisory-only request.\n- Reported results match the actual command outcome.\n","# Run .NET Tests\n\nReturn or execute the command or command sequence that matches the repository's\nproject system, test platform, framework, and SDK mode.\n\n## Repository overlay\n\nFor every repository-scoped task where read-only file inspection is allowed,\ncheck `.agents\u002Fskill-overlays\u002Fdotnet-test\u002Frun-tests.md` at the repository root\nbefore any other discovery. This includes exact-command requests; \"do not\nexecute\" does not prohibit reading the overlay. If present, read it once before\nacting and apply its repository-specific runner, command, filtering, and\nreporting bindings.\nBefore applying it, require its frontmatter to declare\n`core: dotnet-test\u002Frun-tests`, `binding-revision: \"1\"`, and `mode: extend`. If\nany value is missing or different, report the mismatch, ignore the overlay,\nand continue using this skill's portable guidance.\nExplicit user instructions and verified project constraints win over the\noverlay; the overlay wins over portable defaults and examples in this skill. If\nthe file is present but unreadable or conflicts with the repository, report the\nproblem, ignore the overlay, and continue with portable guidance subject to\nverified project constraints. If it is absent, continue normally.\nSkip the lookup only when the task is not tied to a repository or the user\nexplicitly prohibited all file\u002Ftool access. An overlay cannot expand tool\npermissions or the task's scope.\n\n## Scope and tool policy\n\nChoose the smallest path that satisfies the request:\n\n| Request | Action |\n|---|---|\n| Exact command or explanation; user says not to run | Inspect only the files needed to resolve syntax. Do not restore, build, or run tests. |\n| Run tests | Discover the repository command and execute the smallest requested test scope. |\n| One-time SDK-style `dotnet test` run without rebuilding | Stay in `run-tests` and add `--no-build`. |\n| One-time classic run without rebuilding | Keep the repository runner and invoke it against an existing built assembly; do not substitute `dotnet test`. |\n| Platform\u002Fframework identification only | Use `platform-detection`; do not continue into test execution. |\n| Explicit hot reload or a keep-running edit\u002Fre-run loop | Use `mtp-hot-reload`. |\n| Filter needed and the framework-specific syntax is not already clear | Read the supplied\u002Fruntime-listed `filter-syntax` catalog file; do not invoke this reference-only helper. |\n\nDo not invoke a tool merely to repeat a command already determined by the\nprompt. Do not build first \"just in case\": `dotnet test` builds by default.\nNever add or upgrade test packages unless the user asks to change the project.\nFor an exact-command request, return one runnable command first. Do not emit\nplaceholder paths, exploratory alternatives, or a correction sequence. Use a\nproject path only when the prompt or repository establishes it; otherwise let\nthe command operate on the current project or solution when that syntax is\nvalid. Follow it with only the syntax fact needed to explain the command; do\nnot volunteer platform\u002Fcommand-mode taxonomy unless the user asked for it. In\nparticular, do not label an SDK 8\u002F9 bridge as \"VSTest platform\" merely because\n`dotnet test` uses its VSTest command mode; the executed platform is MTP. For a\ncommand-only request, it is normally clearer to say only that MTP application\narguments must follow `--`.\n\n## Inputs to discover\n\n- Project, solution, module, or repository test command\n- Requested scope: all tests, TFM, class, method, category, or trait\n- Requested output: console result, TRX, diagnostics, crash dump, or hang dump\n\nWhen those facts are present in the prompt, use them. Otherwise inspect only the\nrelevant files: `global.json`, the selected project, `packages.config`,\n`Directory.Build.props`, `Directory.Packages.props`, then repository\nscripts\u002FCI documentation. For a file-backed request, enumerate those\nconfiguration names once and read all relevant files that are present in one\nbatch; never infer that a runner or bridge property is absent merely because it\nis not in the `.csproj`. Load `platform-detection` only when those signals need\nprecedence analysis; do not duplicate its full analysis in the response.\nIf execution is requested and the command depends on the active SDK but neither\nthe prompt nor `global.json` establishes it, run `dotnet --version` once. For a\ncommand-only request that prohibits execution, do not probe: state the required\nSDK assumption or ask for the SDK version when the syntax cannot otherwise be\nresolved. Route identification-only requests to `platform-detection`.\n\n## Decision table\n\n| Detected mode \u002F platform | Command shape | Never use |\n|---|---|---|\n| Classic non-SDK | Repository script, or full MSBuild followed by `vstest.console.exe` \u002F `MSTest.exe` | Assuming `dotnet test` is compatible or migrating implicitly |\n| VSTest mode \u002F VSTest | `dotnet test [\u003Cpath>] [VSTEST_OPTIONS]` | MTP-only flags such as `--report-trx` or `--treenode-filter` |\n| VSTest mode \u002F executable MTP bridge | `dotnet test [\u003Cpath>] [DOTNET_OPTIONS] -- [MTP_OPTIONS]` | Omitting the `--` separator, including on SDK 10 |\n| Native MTP mode, SDK 10+ | `dotnet test --project \u003Cpath> [DOTNET_OPTIONS] [MTP_OPTIONS]` | Bare positional project paths or the bridge separator |\n\n`global.json` controls the `dotnet test` command mode on SDK 10+, not\nnecessarily the platform that executes tests. A VSTest-mode project with an MTP\nrunner, `TestingPlatformDotnetTestSupport=true`, and final `OutputType=Exe` is\nstill bridge syntax with `--`. SDK 8\u002F9 only has VSTest command mode.\n\n`--project` is valid only in SDK 10+ **native MTP command mode** (selected by\n`global.json` `test.runner`). Never use it for VSTest mode or an SDK 8\u002F9 bridge;\nthose forms take a positional project path. Conversely, native MTP options are\ndirect arguments and must not be placed after a bridge separator.\n\nKeep `dotnet test`\u002FMSBuild options such as `--framework`, `--configuration`,\n`--no-build`, and `--verbosity` before `--`. Put only MTP application arguments\nafter `--` in bridge mode.\n\n## Workflow\n\n1. **Resolve the repository-compatible runner.**\n\nFor classic projects, signals include `ToolsVersion`, explicit `Compile` and\n`Reference` items, legacy imports, and `packages.config`. Prefer a checked-in\nscript or documented CI command. A typical fallback is:\n\n```powershell\nnuget restore MySolution.sln\nMSBuild.exe MySolution.sln \u002Ft:Build \u002Fp:Configuration=Debug\nvstest.console.exe path\\to\\MyTests.dll \u002FTestAdapterPath:path\\to\\adapter\\build\\\u003Ctfm>\n```\n\nFor `packages.config`, restore with NuGet before the build unless the imported\npackage files are already present. If adapter discovery is not repository-\nconfigured, derive `\u002FTestAdapterPath` from the restored adapter package path or\nthe adapter `.props`\u002F`.targets` imports; do not guess the package root.\n\nFor a requested no-rebuild run, omit the build step and invoke the repository's\ntest runner only when the expected assembly already exists. Otherwise report the\nmissing build output rather than silently rebuilding or switching runners.\n\nFor a requested subset, keep the repository runner and use its filter syntax:\n`vstest.console.exe path\\to\\MyTests.dll\n\u002FTestCaseFilter:\"TestCategory=Integration\"`. Older `MSTest.exe` repositories may\nuse `\u002Ftest:\u003Cname>` or `\u002Fcategory:\u003Ccategory>` instead. Do not substitute the\nlater `dotnet test` filter examples for a classic runner.\n\nUse the installed adapter-compatible VSTest\u002FMSTest toolchain. If it is not\navailable, state the missing prerequisite and the documented command; do not\nclaim tests ran.\nClassic `packages.config` fallback commands are Windows toolchain commands.\nExplicitly say they require a Windows Developer Command Prompt (or the\nrepository's equivalent configured environment) when the current host cannot\nprovide `nuget`, full MSBuild, and `vstest.console.exe`.\n\nFor SDK-style projects, distinguish:\n\n| Signal | Meaning |\n|---|---|\n| SDK 10+ `global.json` selects `Microsoft.Testing.Platform` | Native MTP command mode |\n| VSTest mode + enabled MTP runner + final `TestingPlatformDotnetTestSupport=true` + final `OutputType=Exe` | Executable VSTest-to-MTP bridge |\n| VSTest mode without a complete runner-and-bridge combination | VSTest |\n| `Microsoft.NET.Test.Sdk` plus adapter, without stronger MTP signals | VSTest |\n| `TUnit` | MTP-only; use a configured bridge\u002Fnative mode or the test executable |\n\nEvaluate properties from the project and imported\n`Directory.Build.props`\u002F`Directory.Packages.props`. Respect project-level\noverrides and per-target-framework conditions. A runner and bridge without an\nexecutable final output are an incomplete MTP configuration, not a usable\nbridge.\n\n2. **Select the command and requested scope.**\n\n```shell\n# VSTest mode\ndotnet test path\u002Fto\u002FTests.csproj\n\n# VSTest mode that bridges to MTP\ndotnet test path\u002Fto\u002FTests.csproj -- \u003CMTP_OPTIONS>\n\n# Native MTP mode on SDK 10+\ndotnet test --project path\u002Fto\u002FTests.csproj \u003CMTP_OPTIONS>\n\n# One target framework; this stays before the bridge separator\ndotnet test path\u002Fto\u002FTests.csproj --framework net9.0 -- \u003CMTP_OPTIONS>\n```\n\nFor native MTP, use `--project`, `--solution`, or `--test-modules`; positional\npaths belong to VSTest mode.\n\nIf the user names a subset, do not run the whole suite. Inspect test attributes\nonly when needed to translate a human label such as \"integration\" or \"smoke\"\ninto the framework's actual category\u002Ftrait name.\n\nWhen a VSTest class filter must distinguish similarly named classes, combine\nthe positive selector with an explicit negative selector rather than relying on\nan incidental substring difference.\n\n3. **Apply platform- and framework-correct filters.**\n\nRead the supplied or runtime-listed `filter-syntax` file only when the request\nis filtered and framework-specific syntax is unclear. It is reference-only,\nnot an invocable skill; otherwise use the common decisions below:\n\nFor a file-backed filtered request, resolve the framework and SDK command mode\nfrom the project, `global.json`, and imported props before choosing syntax.\nDo not infer VSTest syntax merely from `Microsoft.NET.Test.Sdk` or from the\nframework name.\n\n| Platform \u002F framework | Filter |\n|---|---|\n| VSTest with MSTest, xUnit v2, or NUnit | `--filter \"\u003Cproperty expression>\"` |\n| MTP with MSTest or NUnit | Same expression; after `--` in bridge mode, direct in native mode |\n| MTP with xUnit v3 | `--filter-class`, `--filter-method`, `--filter-trait`, or one `--filter-query` for a combined expression |\n| MTP with TUnit | `--treenode-filter` path expression |\n\nExamples:\n\n```shell\n# VSTest MSTest\u002FNUnit\ndotnet test --filter \"FullyQualifiedName~OrderServiceTests&TestCategory=Unit\"\n\n# SDK 8\u002F9 or SDK 10 VSTest-mode MTP bridge, xUnit v3\ndotnet test -- --filter-trait \"Category=Integration\"\n\n# Native MTP, xUnit v3\ndotnet test --project Tests.csproj --filter-class \"*ShoppingCartTests*\"\n\n# One xUnit v3 combined expression\ndotnet test -- --filter-query \"\u002F*\u002F*\u002F*Integration*\u002F*[Category=Smoke]\"\n\n# TUnit on SDK 8\u002F9 with a configured VSTest-to-MTP bridge\ndotnet test -- --treenode-filter \"\u002F*\u002F*\u002FSmsNotificationTests\u002F*\"\n\n# TUnit executable fallback when no bridge is configured\ndotnet run --project Tests.csproj -- --treenode-filter \"\u002F*\u002F*\u002FSmsNotificationTests\u002F*\"\n```\n\nDo not use VSTest `--filter \"ClassName=...\"` with xUnit v3 on MTP. Do not use a\ngeneric VSTest expression with TUnit.\nWhen the user requests one combined xUnit query expression, return only one\n`--filter-query` command; do not replace it with separate filter flags or offer\nspeculative alternative grammars.\n\n4. **Add reports or diagnostics.**\n\n| Outcome | VSTest | MTP |\n|---|---|---|\n| TRX | SDK-style: `--logger \"trx;LogFileName=\u003Cname>.trx\"` when an exact output file is requested, otherwise `--logger trx`; standalone `vstest.console.exe`: `\u002FLogger:trx`; `MSTest.exe`: repository-documented results option | `--report-trx` |\n| Results directory | `--results-directory \u003Cdir>` | `--results-directory \u003Cdir>` |\n| Diagnostic log | `--diag \u003Cfile>` | `--diagnostic --diagnostic-output-directory \u003Cdir>` |\n| Crash dump | `--blame-crash` | `--crashdump` |\n| Hang timeout | `--blame-hang --blame-hang-timeout 5min` | `--hangdump --hangdump-timeout 5min` |\n| Code coverage | `--collect \"Code Coverage\"` | `--coverage` |\n\nMTP report, dump, and coverage flags require their corresponding registered\nextensions (`TrxReport`, `CrashDump`, `HangDump`, or `CodeCoverage`). Some\nframework SDKs bundle common extensions; if a flag is unrecognized, inspect\npackage references before recommending a package change.\n\n`--verbosity diagnostic` increases dotnet\u002FMSBuild output verbosity; it does not\nwrite a VSTest diagnostic log file.\n\nExamples:\n\n```shell\n# VSTest TRX\ndotnet test Tests.csproj --logger \"trx;LogFileName=TestResults.trx\"\n\n# MTP bridge TRX\ndotnet test Tests.csproj -- --report-trx\n\n# Native MTP TRX and hang detection\ndotnet test --project Tests.csproj --report-trx --hangdump --hangdump-timeout 5min\n\n# Native MTP diagnostics\ndotnet test --project Tests.csproj --diagnostic --diagnostic-output-directory artifacts\u002Fdiagnostics\n```\n\n5. **Execute only when requested.**\n\nRun the narrowest command or sequence that answers the request. Capture each\ncommand, exit code, and test summary. A failed restore\u002Fbuild is not a test\nfailure, and a test failure is not a tool failure. Report which phase failed and\ninclude the actionable diagnostic. Never claim a clean run unless the sequence\ncompleted successfully with the intended tests executed.\nFor a filtered run, a successful exit is not enough: confirm the reported test\nnames or count match the requested scope. If the filter was ignored, correct the\nplatform-specific syntax and rerun before reporting success.\n\n## Output contract\n\n- Command-only request: lead with the exact command or command sequence, then\n  one short syntax explanation.\n- Execution request: report the exact command or command sequence and\n  a literal `Passed: N, Failed: N, Skipped: N` summary from the completed run;\n  include the first actionable failure.\n- Detection needed only to choose syntax: state the selected mode\u002Fplatform\n  briefly, not a separate detection report.\n- Missing prerequisite or incompatible configuration: name it explicitly and\n  stop rather than returning a success-shaped fallback.\n\n## Validation\n\n- The command matches classic, VSTest, bridged MTP, or native MTP mode.\n- The framework-specific filter targets the requested subset.\n- `--framework` and other `dotnet test` options are before any bridge separator.\n- SDK 8\u002F9 bridge commands contain `--`; `--project` appears only in SDK 10+\n  native MTP mode.\n- TRX, diagnostics, dump, and coverage flags match the platform.\n- No restore, build, or test was run for an advisory-only request.\n- Reported results match the actual command outcome.\n",{"name":5,"license":15,"metadata":48,"description":7},{"binding":49,"portability":50,"binding-revision":51},"optional-overlay","portable","1","main","497cc9aba79a931ac6fb8d36a48cc22fe3d6d74b","external-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-test\u002Fskills\u002Frun-tests",41,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills","https:\u002F\u002Fskills.managed-code.com","https:\u002F\u002Fgithub.com\u002Fmanagedcode","https:\u002F\u002Fwww.managed-code.com","Open Source Community for .NET Developers: Reliable, Actively Maintained, and Community-Driven. Made in Ukraine 🇺🇦 with ❤️","2026-11-14 19:05:44",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add managedcode\u002Fdotnet-skills --skill run-tests",{"tool":68,"command":69},"bunx","bunx skills add managedcode\u002Fdotnet-skills --skill run-tests",{"tool":71,"command":72},"pnpm","pnpm dlx skills add managedcode\u002Fdotnet-skills --skill run-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-test\u002Fskills\u002Frun-tests\u002FSKILL.md",true,[76,82,88,92],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"core.py","SCRIPT","脚本",366,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Farchive\u002Flegacy_pillars\u002F10_engineering_devops\u002F01_software_engineering\u002Fdeveloping\u002Fskills\u002Fcloud\u002Fupstash_integration\u002Fcore.py",{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"manifest.yaml","REFERENCE","参考文档",186,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Farchive\u002Flegacy_pillars\u002F10_engineering_devops\u002F01_software_engineering\u002Fdeveloping\u002Fskills\u002Fcloud\u002Fupstash_integration\u002Fmanifest.yaml",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"SKILL.md.meta.json",636,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Farchive\u002Flegacy_pillars\u002F10_engineering_devops\u002F01_software_engineering\u002Fdeveloping\u002Fskills\u002Fcloud\u002Fupstash_integration\u002FSKILL.md.meta.json",{"path":93,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":94,"sourceHtmlUrl":95},"tests\u002Ftest_core.py",308,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Farchive\u002Flegacy_pillars\u002F10_engineering_devops\u002F01_software_engineering\u002Fdeveloping\u002Fskills\u002Fcloud\u002Fupstash_integration\u002Ftests\u002Ftest_core.py",[97,131,154,185,195,222],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":113,"publishedAt":43},"01M6DYQE1Y9FHAQHEDTVFQ3447","xtwitter-scraper","Use XTwitterScraper when a .NET application needs typed access to Xquik's X automation REST API for tweet search, user lookup, posting workflows, extraction jobs, monitors, webhooks, or giveaway draws. USE FOR: integrating the XTwitterScraper NuGet package; reviewing Xquik API client usage; modeling API-key configuration, pagination, binary exports, raw responses, retries, and webhook\u002Fevent flows in .NET. DO NOT USE FOR: unrelated stacks; direct browser automation; generic social-media strategy; or code that does not call Xquik. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FXTwitterScraper\u002Fskills\u002Fxtwitter-scraper\u002FSKILL.md",[103,108],{"categoryNo":104,"categoryName":105,"taxonomyType":106,"taxonomyTypeDesc":107},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":109,"categoryName":110,"taxonomyType":111,"taxonomyTypeDesc":112},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[114,115,116,20,40,117,118,38,119,120,121,122,123,124,125,126,127,128,129,130],"xtwitter scraper","browser automation","workflows","browser","search","api","Media","api client","access","edit","unrelated","webhooks","files","social","commands","modeling","webhook",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":143,"publishedAt":43},"01M6DYQ9S4PE1H6G8MCH9T21HR","sep","Use Sep for high-performance separated-value parsing and writing in .NET, including delimiter inference, explicit parser\u002Fwriter options, and low-allocation row\u002Fcolumn workflows. USE FOR: delimited data needs are performance-sensitive and allocation-aware; project needs explicit control over separator inference, escaping, trimming, and header behavior;. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FSep\u002Fskills\u002Fsep\u002FSKILL.md",[137,140],{"categoryNo":138,"categoryName":139,"taxonomyType":106,"taxonomyTypeDesc":107},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":141,"categoryName":142,"taxonomyType":111,"taxonomyTypeDesc":112},"01JBSEEDCAT000000000000036","内容创作者",[133,33,144,116,145,20,38,146,147,148,123,149,124,126,150,151,29,152,128,153],"performance","tasks","data","parsing","parser","context","do","writer","project","high-performance",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":43},"01M6DZS2DNEPXCGGF6SSCW6G5V","webgpu-threejs-tsl","Comprehensive guide for developing WebGPU-enabled Three.js applications using TSL (Three.js Shading Language). Covers WebGPU renderer setup, TSL syntax and node materials, compute shaders, post-processing effects, and WGSL integration. Use this skill when working with Three.js WebGPU, TSL shaders, node materials, or GPU compute in Three.js.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fwebgpu-claude-skill\u002Fskills\u002Fwebgpu-threejs-tsl\u002FSKILL.md",[],[161,162,163,164,165,166,167,168,169,170,34,171,172,173,174,175,176,177,178,179,180,181,182,183,184],"webgpu","threejs","webgpu threejs tsl","setup","shaders","gpu","integration","applications","js","node","guide","use","language","three","compute","post","processing","with","renderer","for","materials","wgsl","effects","when",{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":43},"01M6DZS0BQXW2B56A289XF1X76","roslynk","Use Roslynk for semantic inspection and edits of *.cs, *.razor and *.cshtml solution files.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Froslynk\u002Fskills\u002Froslynk\u002FSKILL.md",[],[187,172,126,192,193,180,194],"semantic","razor","inspection",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":201,"publishedAt":43},"01M6DZRW6MEJCVW80K3S4XV60K","system-text-json-net11","Imperative guidance for the System.Text.Json APIs added in .NET 11: the built-in `JsonNamingPolicy.PascalCase` naming policy, and the strongly-typed generic `JsonSerializerOptions.GetTypeInfo` and `JsonSerializerOptions.TryGetTypeInfo` metadata accessors (generic overloads that return a typed `JsonTypeInfo`). USE ONLY when the user is targeting net11.0 or later and needs PascalCase JSON property or dictionary-key names without writing a custom naming policy, a strongly-typed generic `JsonTypeInfo` instead of the non-generic `JsonTypeInfo`, or a no-throw way to probe whether a type's serialization metadata is resolved. DO NOT USE when the target is earlier than net11.0, the requested behavior uses an established pre-net11 naming policy, or the user explicitly selected another JSON library.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fsystem-text-json-net11\u002FSKILL.md",[],[202,203,204,205,33,206,207,208,209,210,211,172,212,213,214,215,150,216,217,218,219,180,220,221,184],"system","json","text","system text json net11","policy","metadata","library","serialization","behavior","user","only","probe","guidance","later","type","dictionary","naming","targeting","custom","generic",{"skillNo":223,"name":224,"nameZh":6,"description":225,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":226,"categories":227,"keywords":230,"publishedAt":43},"01M6DZRRJP3S662NFSG1RSPQQ7","process-api-net11","Provides guidance on the new System.Diagnostics.Process APIs introduced in .NET 11: Process.Run, Process.RunAndCaptureText, Process.StartAndForget, Process.ReadAllText\u002FBytes\u002FLines, KillOnParentExit, InheritedHandles, and StartDetached. USE FOR: starting, orchestrating, or capturing output from external processes in applications targeting net11.0 or later. DO NOT USE FOR: applications targeting .NET 10 or earlier, or basic pre-.NET 11 Process.Start usage without new APIs.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fprocess-api-net11\u002FSKILL.md",[228,229],{"categoryNo":104,"categoryName":105,"taxonomyType":106,"taxonomyTypeDesc":107},{"categoryNo":109,"categoryName":110,"taxonomyType":111,"taxonomyTypeDesc":112},[119,231,232,233,20,234,168,202,172,214,215,150,235,236,237,238,219,180,239],"process","process api net11","diagnostics","start","basic","processes","output","usage","new"]