[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HPR3V9ZJBQ2888X232M1KA":3,"skill-same:01M6HPR3V9ZJBQ2888X232M1KA":60},{"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":23,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6HPR3V9ZJBQ2888X232M1KA","testing",null,"Provides guidance and instructions for writing, running and filtering tests.","microsoft\u002Fvs-mef","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M6HPQYR3V0KE6MHFYSM9NJKX",469,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-mef\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[5,24,25,26,27,28,29,30],"for","instructions","guidance","tests","filtering","writing","false","2026-11-10 10:12:30",false,"---\nname: testing\ndescription: Provides guidance and instructions for writing, running and filtering tests.\nuser-invocable: false\n---\n\n**IMPORTANT**: This repository uses xUnit v3 with Microsoft.Testing.Platform (MTP v2). Traditional VSTest `--filter` syntax does NOT work. Use the options below instead.\n\n* There should generally be one test project (under the `test` directory) per shipping project (under the `src` directory). Test projects are named after the project being tested with a `.Tests` suffix.\n* Tests use xUnit v3 with Microsoft.Testing.Platform (MTP v2).\n\n## Running Tests\n\nThere *may* be unstable tests that are attributed as such.\nRunning the [dotnet-test-cloud.ps1](..\u002F..\u002F..\u002Ftools\u002Fdotnet-test-cloud.ps1) script will execute all previously built tests except the unstable ones.\nThe commands below will *not* automatically exclude unstable tests, but you may do so by adding a parameter to filter out those that set their `TestCategory` property to `FailsInCloudTest`.\n\n**Run all tests** (from the root of the repository):\n```bash\ndotnet test --no-build -c Release\n```\n\nTo run a specific test project, change to that project's directory first; the commands below then target it without hard-coding its path.\n\n**Run tests for a specific test project** (within that test project's directory):\n```bash\ndotnet test --no-build -c Release\n```\n\n**Run a single test method**:\n```bash\ndotnet test --no-build -c Release -- --filter-method ClassName.MethodName\n```\n\n**Run all tests in a test class**:\n```bash\ndotnet test --no-build -c Release -- --filter-class ClassName\n```\n\n**Run tests with wildcard matching** (supports wildcards at beginning and\u002For end):\n```bash\ndotnet test --no-build -c Release -- --filter-method \"*Pattern*\"\n```\n\n**Run tests with a specific trait**:\n```bash\ndotnet test --no-build -c Release -- --filter-trait \"TraitName=value\"\n```\n\n**Exclude tests with a specific trait**:\n```bash\ndotnet test --no-build -c Release -- --filter-not-trait \"TestCategory=FailsInCloudTest\"\n```\n\n**Run tests for a specific framework only**:\n```bash\ndotnet test --no-build -c Release --framework net10.0\n```\n\n**List all available tests without running them**:\n```bash\ncd test\u002FMicrosoft.VisualStudio.Composition.Tests\ndotnet run --no-build -c Release --framework net10.0 -- --list-tests\n```\n\n**Key points about test filtering with xUnit v3 \u002F MTP v2**:\n- Options after `--` are passed to the test runner, not to `dotnet test`\n- Use `--filter-method`, `--filter-class`, and `--filter-namespace` for simple filtering\n- Use `--filter-trait` and `--filter-not-trait` for trait-based filtering\n- Traditional VSTest `--filter` expressions do NOT work\n- Wildcards `*` are supported at the beginning and\u002For end of filter values\n- See `--help` for the query filter language for advanced scenarios\n","**IMPORTANT**: This repository uses xUnit v3 with Microsoft.Testing.Platform (MTP v2). Traditional VSTest `--filter` syntax does NOT work. Use the options below instead.\n\n* There should generally be one test project (under the `test` directory) per shipping project (under the `src` directory). Test projects are named after the project being tested with a `.Tests` suffix.\n* Tests use xUnit v3 with Microsoft.Testing.Platform (MTP v2).\n\n## Running Tests\n\nThere *may* be unstable tests that are attributed as such.\nRunning the [dotnet-test-cloud.ps1](..\u002F..\u002F..\u002Ftools\u002Fdotnet-test-cloud.ps1) script will execute all previously built tests except the unstable ones.\nThe commands below will *not* automatically exclude unstable tests, but you may do so by adding a parameter to filter out those that set their `TestCategory` property to `FailsInCloudTest`.\n\n**Run all tests** (from the root of the repository):\n```bash\ndotnet test --no-build -c Release\n```\n\nTo run a specific test project, change to that project's directory first; the commands below then target it without hard-coding its path.\n\n**Run tests for a specific test project** (within that test project's directory):\n```bash\ndotnet test --no-build -c Release\n```\n\n**Run a single test method**:\n```bash\ndotnet test --no-build -c Release -- --filter-method ClassName.MethodName\n```\n\n**Run all tests in a test class**:\n```bash\ndotnet test --no-build -c Release -- --filter-class ClassName\n```\n\n**Run tests with wildcard matching** (supports wildcards at beginning and\u002For end):\n```bash\ndotnet test --no-build -c Release -- --filter-method \"*Pattern*\"\n```\n\n**Run tests with a specific trait**:\n```bash\ndotnet test --no-build -c Release -- --filter-trait \"TraitName=value\"\n```\n\n**Exclude tests with a specific trait**:\n```bash\ndotnet test --no-build -c Release -- --filter-not-trait \"TestCategory=FailsInCloudTest\"\n```\n\n**Run tests for a specific framework only**:\n```bash\ndotnet test --no-build -c Release --framework net10.0\n```\n\n**List all available tests without running them**:\n```bash\ncd test\u002FMicrosoft.VisualStudio.Composition.Tests\ndotnet run --no-build -c Release --framework net10.0 -- --list-tests\n```\n\n**Key points about test filtering with xUnit v3 \u002F MTP v2**:\n- Options after `--` are passed to the test runner, not to `dotnet test`\n- Use `--filter-method`, `--filter-class`, and `--filter-namespace` for simple filtering\n- Use `--filter-trait` and `--filter-not-trait` for trait-based filtering\n- Traditional VSTest `--filter` expressions do NOT work\n- Wildcards `*` are supported at the beginning and\u002For end of filter values\n- See `--help` for the query filter language for advanced scenarios\n",{"name":5,"description":7,"user-invocable":32},"main","3eecaaf911d399d28f87c880d651f6874305b09d",".agents\u002Fskills\u002Ftesting",93,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-mef","https:\u002F\u002Fmicrosoft.github.io\u002Fvs-mef\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-12 09:23:39",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add microsoft\u002Fvs-mef --skill testing",{"tool":52,"command":53},"bunx","bunx skills add microsoft\u002Fvs-mef --skill testing",{"tool":55,"command":56},"pnpm","pnpm dlx skills add microsoft\u002Fvs-mef --skill testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-mef\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting\u002FSKILL.md",true,[],[61,79],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":31},"01M6HPR6S268H879WJT07XNBV4","update-library-template","Merges the latest Library.Template into this repo (at position of HEAD) and resolves conflicts.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-mef\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fupdate-library-template\u002FSKILL.md",[],[68,69,70,71,72,73,74,75,76,77,78],"update library template","update","library","template","at","latest","true","position","head","conflicts","repo",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":31},"01M6HPR0XE3X98A1BN5SX9FN7G","bundle-dependency-prs","Fix broken dependency update PRs and aggregate the ones that work into one PR.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-mef\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbundle-dependency-prs\u002FSKILL.md",[],[86,87,88,89,74,90,91,92,69,93],"bundle dependency prs","dependency","bundle","pr","fix","broken","work","dependency update"]