본문으로 건너뛰기
Skillpedia
테스트5.8k · #14634

platform-detection

하는 일

이 스킬은 .NET 프로젝트가 어떤 테스트 플랫폼과 테스트 프레임워크를 쓰는지, 그리고 설정이 서로 일관된지 알아냅니다. 테스트를 바꾸거나 실행하기 전에 어떻게 실행되는지 알아야 하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓.NET 프로젝트가 어떤 테스트 플랫폼이나 프레임워크를 쓰는지 물을 때.
  • ✓프로젝트가 VSTest를 쓰는지 Microsoft.Testing.Platform을 쓰는지 알아야 할 때.
  • ✓테스트 설정이 서로 충돌해 보여서 실제로 무엇이 테스트를 실행하는지 알아야 할 때.

스킬 링크

https://github.com/dotnet/skills/blob/main/plugins/dotnet-test/skills/platform-detection/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/dotnet/skills/blob/main/plugins/dotnet-test/skills/platform-detection/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 .NET 솔루션은 VSTest로 테스트를 실행하나요, 아니면 Microsoft.Testing.Platform으로 실행하나요? 어떤 테스트 프레임워크를 쓰나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 전역 설정, 프로젝트 파일, 패키지 참조를 확인하고, 실제로 어떤 플랫폼과 프레임워크가 테스트를 실행하는지 근거와 함께 보고합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Test Platform and Framework Detection

Determine which test platform (VSTest or Microsoft.Testing.Platform) and which test framework (MSTest, xUnit, NUnit, TUnit) a project uses.

Response contract

Honor the user's requested labels and order exactly, substituting the actual classification for every placeholder. Start with the verdict: never put a heading, scratch analysis, tool syntax, or an echoed template before it. Follow with one concise evidence sentence naming the repository facts needed to justify every requested classification. When Framework is requested, name the package or project SDK that identifies it. Use a second sentence only for a conflict, an incomplete configuration, or target-framework-specific differences.

Platform means the platform that actually executes tests: VSTest or MTP. If conflicting or incomplete configuration prevents execution, report it as unavailable rather than inventing a successful platform.

Never classify the executed platform from global.json test.runner alone. That setting selects dotnet test command mode; even an explicit VSTest value can bridge to an executable MTP application. Continue through the project runner, bridge, and output-shape signals before writing Platform:.

Apply this scope gate before drafting the evidence:

User asks for Evidence to include Omit
Platform and framework Final runner selector and its winning source; package or project SDK identifying the framework; when needed, the property that makes it executable Command mode; common SDK facts; OutputType unless it is missing or conflicting
The single deciding signal That runner-selection property, why its source wins, and why a competing package does not select or imply VSTest; still name the package or project SDK identifying a requested framework Bridge, OutputType, SDK mode, and unrelated prerequisites when the configuration is complete
Platforms per target framework Only the conditional final values that differ by target Common properties and project-wide SDK commentary
Explicit opt-out Final UseVSTest value and its winning source Superseded defaults unless they create a conflict
dotnet test mode The separate command-mode and executed-platform classifications None of the requested axes

If the requested labels omit dotnet test mode, do not state or explain command mode anywhere in the response. An exact bridge property may still be decisive platform evidence, but do not turn it into SDK or CLI-mode commentary. When the user asks which single signal decides between an explicit runner property and Microsoft.NET.Test.Sdk, the evidence sentence must say both that the runner property selects MTP and that Microsoft.NET.Test.Sdk does not select or imply VSTest.

When import precedence decides a property, state why the winning source wins (for example, it is imported later or its condition applies), not merely that it contains the final value or overrides another assignment.

Keep the explanation on the requested axis:

  • An SDK version pin in global.json is context, not a platform selector. Claim that global.json selects VSTest or native MTP only when its test.runner setting actually does so.
  • If UseVSTest=true is decisive, say that directly. Do not speculate about an absent test.runner or describe SDK pinning as an additional platform choice.
  • If command mode was not requested, do not add it, even when it was needed internally to determine the executed platform.

When a classic-project request also asks for the command family, add a direct line such as Command family: MSBuild + vstest.console.exe; do not turn it into an optional alternative or add an unnecessary build qualifier.

For a file-backed request, enumerate the following configuration names once, then read every relevant file that is present in one batched operation: global.json, .csproj, packages.config, Directory.Build.props, Directory.Build.targets, Directory.Packages.props, and explicit imported .props / .targets. A setting absent from the project file may be defined by an import, so never infer its final value from the .csproj alone. Do not search the web or inspect unrelated files when repository configuration is sufficient.

Resolve properties in the actual MSBuild import order, not with a fixed "project beats props" rule. For every applicable target framework

자주 묻는 질문

전역 설정만으로 플랫폼을 알 수 있나요?

아니요. 설정이 명령 모드를 고를 수는 있어도 실제 플랫폼을 결정하지는 않으므로, 다른 신호도 확인합니다.

설정이 불완전하면 어떻게 하나요?

추측하지 않고 플랫폼을 확인할 수 없다고 보고합니다.

.NET이 아닌 프로젝트에도 되나요?

아니요. .NET 프로젝트와 그 테스트 설정만 대상으로 합니다.

상세 정보

작성자의 원본 설명

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 conflicting VSTest/MTP configuration. Resolves global.json, project, packages.config, Directory.Build.props, and Directory.Packages.props precedence for MSTest/xUnit/NUnit/TUnit. DO NOT USE when the user asks to run/filter tests or for commands, flags, TRX/dumps, or test-command/filter errors; use run-tests directly. D

repo: dotnet/skills

인기도

GitHub 스타
5.8k
순위
#14634
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬