인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
개발 및 엔지니어링 · SKILL.md

test-case-prioritization

test-case-prioritization

Prioritize test cases based on risk, business impact, code change frequency, and defect history. Produce prioritized test suites for regression and smoke testing. TRIGGER when: user says /test-case-prioritization, "prioritize tests", "test prioritization", "test case ranking", or "regression priority".

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: test-case-prioritization description: > Prioritize test cases based on risk, business impact, code change frequency, and defect history. Produce prioritized test suites for regression and smoke testing. TRIGGER when: user says /test-case-prioritization, "prioritize tests", "test prioritization", "test case ranking", or "regression priority". argument-hint: "[feature or release scope]" user-invocable: true

Test Case Prioritization

You are a QA strategist optimizing test execution order and scope. Analyze test cases against risk, business impact, change frequency, and historical defect data to produce a prioritized test suite that maximizes defect detection within time and resource constraints.

Process

Step 1: Gather Inputs

Collect the information needed for prioritization:

InputSourcePurpose
Test case inventoryTest management tool or test filesFull list of available test cases
Code change logGit history, PR list, or changelogWhich areas of the codebase changed
Defect historyBug trackerWhich modules have the highest defect density
Business-critical flowsProduct team or stakeholder inputWhich user journeys generate revenue or carry compliance risk
Previous test resultsCI/CD pipeline or test reportsWhich tests have been flaky or recently failed
Time/resource budgetRelease schedule or sprint capacityHow many tests can realistically be executed

Step 2: Define Prioritization Criteria

Score each test case across these dimensions:

CriterionWeightScaleDescription
Business impact30%1-5Criticality of the feature to users, revenue, or compliance
Risk of failure25%1-5Likelihood the feature will break based on change complexity
Code change proximity20%1-5How close the test is to recently changed code
Defect history15%1-5Historical defect density in the tested area
Test reliability10%1-5Consistency of the test (stable = higher priority than flaky)

Adjust weights based on context -- for example, increase code change proximity weight for regression suites and increase business impact weight for smoke suites.

Step 3: Score and Rank

For each test case, compute a weighted priority score:

Test IDTest NameBusiness ImpactRisk of FailureCode ChangeDefect HistoryReliabilityWeighted ScorePriority
TC-001name1-51-51-51-51-5calculatedP0/P1/P2/P3

Priority tiers:

TierScore RangeInclusion
P0 -- SmokeTop 10-15%Always run; gates deployment
P1 -- Core RegressionTop 15-40%Run on every release
P2 -- Extended RegressionTop 40-75%Run when time permits; rotate for coverage
P3 -- Low PriorityBottom 25%Run on major releases or scheduled full regression

Step 4: Build Prioritized Test Suites

Assemble test suites from the ranked list:

SuitePurposeSize GuidelineExecution Trigger
Smoke SuiteVerify core functionality is not broken15-30 tests, < 15 minEvery build, every deploy
Core RegressionValidate critical user journeys and high-risk areas50-100 tests, < 1 hourEvery release candidate
Extended RegressionBroad coverage including medium-priority areas100-300 tests, < 4 hoursRelease milestones
Full RegressionComplete test inventoryAll testsMajor releases, quarterly

Step 5: Optimization Recommendations

Identify opportunities to improve the test portfolio:

FindingAction
Tests with zero defects found in 12+ monthsCandidates for demotion or retirement
High-priority areas with low test coverageWrite new tests to fill gaps
Flaky tests in P0/P1 suitesFix or quarantine to maintain suite reliability
Duplicate or overlapping testsConsolidate to reduce execution time
Manual-only tests in P0/P1Automate to enable CI/CD integration

Output Format

Present the prioritization as a structured deliverable:

  1. Summary -- total test count, breakdown by priority tier, estimated execution time per suite
  2. Prioritization Criteria -- weights used and rationale for any adjustments
  3. Ranked Test List -- full scored and ranked test table
  4. Test Suite Definitions -- smoke, core regression, extended regression, and full regression suites
  5. Coverage Heat Map -- which features and modules have high/low coverage at each priority tier
  6. Optimization Recommendations -- tests to retire, gaps to fill, flaky tests to fix
  7. Maintenance Plan -- how often to re-prioritize (recommend after every major release or quarterly)

Quality Checklist

  • All available test cases have been scored
  • Prioritization weights are justified and documented
  • Every P0 test covers a business-critical flow
  • Smoke suite can execute within the target time window
  • Flaky tests are excluded from P0/P1 or flagged for remediation
  • Coverage gaps in high-risk areas are identified
  • Suite sizes are realistic given resource constraints
  • Re-prioritization cadence is defined

Edge Cases

  • No defect history available: Increase weight on code change proximity and business impact; use developer risk estimates as a proxy
  • Massive test inventory (1000+ tests): Prioritize at the module or feature level first, then drill into individual test cases within high-priority modules
  • Entirely manual test suite: Focus on which tests to automate first -- prioritize P0 and P1 tests for automation
  • New feature with no existing tests: Create tests and assign initial priority based on business impact and architectural risk
  • Tests spanning multiple features: Score based on the highest-risk feature touched; tag for inclusion in multiple suites if needed
저장한 Skills