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

test-tagging

하는 일

이 스킬은 기존 테스트에 트레이트라 불리는 표준 범주 표시를 붙이고, 테스트 스위트가 어떻게 나뉘는지 보고합니다. 정상 경로와 오류 경로처럼 테스트 구성을 보려는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓테스트 스위트의 모든 테스트에 표준 범주 속성을 붙이고 싶을 때.
  • ✓테스트가 정상 경로와 오류 경로로 어떻게 나뉘는지 요약을 보고 싶을 때.
  • ✓핵심 경로에 충분한 테스트가 있는지 확인하고 싶을 때.

스킬 링크

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

AI에게 요청하는 예시

“제 모든 테스트에 표준 범주를 붙이고, 정상 경로와 오류 경로 테스트가 각각 몇 개인지 보여 주세요.”

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

작동 방식

에이전트가 테스트 이름과 본문을 읽고, 각 테스트를 트레이트로 분류하며, 범주가 명확한 곳에만 표준 속성을 적용하고, 분포를 보고합니다.

기술 내용 (원본 SKILL.md)

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

Test Trait Tagging

Analyze an existing test suite in any supported language and apply a standardized set of trait tags to each test method, giving teams visibility into their test distribution (positive vs. negative, critical-path coverage, smoke tests, etc.).

Language-specific guidance: Read the caller-provided or runtime-listed test-analysis-extensions catalog and its matching language file. The helper is reference-only, not an invocable skill. If absent, continue with the built-in framework table below and report the limitation.

When to Use

  • Auditing a test project to understand the mix of test types
  • Adding trait attributes to untagged tests
  • Generating a summary report of trait distribution across a test suite
  • Reviewing whether critical paths have sufficient coverage

When Not to Use

  • Writing new tests from scratch (use code-testing for any language, or writing-mstest-tests for MSTest)
  • Running or filtering tests (use run-tests for .NET; equivalent native runners elsewhere)
  • Migrating between test frameworks
  • General quality, smell, flakiness, or assertion audits (use test-anti-patterns or the matching analysis skill)
  • Diagnostic .NET executed line/branch/Cobertura interpretation or project-wide CRAP risk (use coverage-analysis); raw coverage collection (use run-tests for .NET, native tooling otherwise)
  • CRAP analysis for a named method, class, or file (use crap-score)
  • Behavioral gaps where a test would survive broken production logic (use test-gap-analysis)

Inputs

Input Required Description
Test project or files No Path to the test project, folder, or specific test files. Discover from the current workspace when omitted.
Scope No Infer from the verb: tag/apply edits, audit/classify/report is report-only, and both applies only when both are requested. If ambiguous, default to audit to avoid unrequested edits. Frameworks declared report-only always emit a report; convention-based frameworks edit only after the user confirms the convention.
Framework No Auto-detected. Override when detection fails.

Trait Taxonomy

Use exactly these trait names and values. Do not invent new trait values outside this table.

Trait Value Meaning Heuristics
positive Verifies expected behavior under normal/valid conditions Asserts success, valid output, expected state, no exceptions for valid input
negative Verifies correct handling of invalid input, errors, or edge cases Asserts exceptions, error codes, validation failures, rejects bad input
boundary Tests limits, thresholds, empty/null/None/nil inputs, min/max values Operates on 0, -1, int.MaxValue / sys.maxsize / Number.MAX_SAFE_INTEGER / math.MaxInt64 / i32::MAX, empty string, null/None/nil/undefined, empty collection, boundary of valid range
critical-path Core workflow that must never break; breakage blocks users Tests the primary success scenario of a key public API or user-facing feature
smoke Quick sanity check that the system is operational Fast, no complex setup, verifies basic wiring (e.g., service resolves, endpoint returns 200)
regression Reproduces a specific previously-reported bug References a bug ID, issue number, or describes a fix in its name or comments
integration Crosses process, network, or persistence boundaries Uses real database, HTTP client, file system, external service, or multi-component setup
end-to-end Full user workflow spanning the entire application stack Exercises a complete scenario from entry point to final result, distinct from single-boundary integration
performance Validates timing, throughput, or resource consumption Asserts on elapsed time, memory, allocations, or uses benchmark harness (BenchmarkDotNet, pytest-benchmark, benchmark.js, JMH, go test -bench, criterion.rs, XCTMetric, kotlinx-benchmark, Google Benchmark)
security Verifies authentication, authorization, input sanitization, or secrets handling Tests for SQL injection, XSS, CSRF, unauthorized access, token validation, permission checks
concurrency Validates thread safety, parallelism, or async correctness Uses Task.WhenAll / Parallel.ForEach / SemaphoreSlim (.NET); asyncio.gather / threading.Lock / multiprocessing (Python); Promise.all / worker threads
자주 묻는 질문

테스트를 바꾸나요?

범주가 명확할 때만 표준 속성을 적용하고, 그렇지 않으면 분류만 보고합니다.

테스트를 실행하나요?

아니요. 분류하고 보고합니다. 테스트 실행은 다른 스킬이 다룹니다.

코드 커버리지에 대한 것인가요?

정확히는 아닙니다. 이 스킬은 테스트 종류의 구성을 설명하고, 커버리지 분석은 실행된 줄과 분기를 다룹니다.

상세 정보

작성자의 원본 설명

Classifies existing tests by standard traits and reports their distribution. USE FOR: tagging all tests with category attributes, categorizing/tagging/ labeling each test, compare happy vs error paths, audit the test mix, describe coverage shape by test type, or tag then verify the project builds. Read bodies when names mislead. Apply canonical attributes; otherwise report only. DO NOT USE FOR: requests owned by test-anti-patterns, coverage-analysis, crap-score, test-gap-analysis, code-testing, or migration skills.

repo: dotnet/skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬