Select Regression Tests
Purpose
Choose the smallest regression set that gives justified confidence for a given change, and make the risk of what is not run visible to the people deciding to ship.
When to use
- A hotfix, patch or feature release must be retested in limited time.
- The full regression suite takes longer than the release window allows.
- A shared component, library or configuration changed and its reach is unclear.
When not to use
- You need to decide what is worth automating long term. Use
automation-candidate-selection.
- You need test prioritization for a whole product, not a specific change. Use
risk-based-testing.
- You need to find missing tests in code. Use
test-gap-finder.
Inputs
Required:
- A description of the change (stories, commits, pull requests, configuration or dependency changes).
Optional, improves quality:
- Existing test inventory with areas/tags, automation status and duration.
- Architecture or dependency map, recent defect and incident history, usage analytics.
- Time and environment budget for testing.
If the change description is missing, ask for it. If no test inventory exists, output test areas and scenario names to cover instead of test IDs.
Process
- List each change item and classify it: code logic, shared library/dependency, data/schema, configuration/feature flag, infrastructure, UI only.
- Map direct impact: features, APIs, screens and batch jobs that call the changed code.
- Map indirect impact: consumers of shared components, data read or written by the change, integrations and downstream reports, security and permission paths. Mark inferred links
[ASSUMPTION].
- Add risk modifiers: business criticality, recent defects or incidents in the area, change complexity, first release of a dependency upgrade, low existing coverage.
- Select tests in tiers: Tier 1 must-run (verify the change itself plus high-risk direct impact), Tier 2 should-run (indirect impact, high-traffic journeys), Tier 3 optional (remaining related areas).
- Always include a smoke set of critical business journeys regardless of the change.
- Prefer automated tests where they exist; list manual tests only where automation does not cover the risk.
- Estimate effort per tier from given durations, or mark
[UNKNOWN]; fit the plan to the time budget and state what is cut.
- Write the residual risk: areas intentionally not retested and why the risk is acceptable or needs sign-off.
- Define the trigger to expand scope (e.g. any Tier 1 failure, defects found in indirect areas).
- If the user continues, suggest
test-summary-report to report results or automation-candidate-selection when manual Tier 1 tests recur.
Output format
# Regression Selection: <release / change>
## Change Items
| Change | Type | Direct impact | Indirect impact | Risk modifiers |
|---|---|---|---|---|
## Selected Tests
| Tier | Test / area | Reason (change link) | Auto/Manual | Est. effort |
|---|---|---|---|---|
## Always-run Smoke Set
- ...
## Not Selected and Residual Risk
- <area>: <why not> – <risk level, sign-off needed?>
## Expansion Triggers
- ...
Quality checklist
Common pitfalls
- Testing only the changed feature. Regressions usually appear in consumers of shared code and data.
- Treating dependency upgrades as low risk. Library upgrades change behavior in serialization, dates, PDF rendering and security defaults.
- Silently skipping tests to meet the deadline. Record the cut and make the decision owner visible.
Example
Input: "Discount calculation service changed; PDF library upgraded; hotfix tomorrow."
Excerpt of output:
| Tier |
Test / area |
Reason |
Auto/Manual |
| 1 |
Discount rules suite (percentage, fixed, stacked, caps) |
Direct change |
Auto |
| 1 |
Invoice and credit note PDF rendering, Turkish characters, multi-page |
Library upgrade |
Manual |
| 2 |
Order refund amount after discounted purchase |
Consumes discount result |
Auto |
| 2 |
Monthly sales report totals |
Reads discounted amounts [ASSUMPTION] |
Manual |
Residual risk: Loyalty points accrual not retested; it reads net amounts [UNKNOWN]; needs product owner sign-off.
1---2name: regression-selection3description: "Selects a regression test set for a specific change by analyzing what changed, its direct and indirect impact (shared code, data, integrations, configuration), risk and recent defect history, then tiers tests into must-run, should-run and optional with explicit residual risk. Use when a release, hotfix or merge needs regression testing but the full suite is too slow or expensive, or when someone asks what must be retested after a change."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/regression-selection7 version: "1.0.0"8 language: en9 category: 06-quality10 role: qa-analyst11 area: execution12 title: "Select regression tests"13 related: "impact-analysis, risk-based-testing, test-summary-report, automation-candidate-selection, test-gap-finder"14 prompt: "We changed the discount calculation service and upgraded the PDF library. Which regression tests must we run before tomorrow's hotfix?"15---1617# Select Regression Tests1819## Purpose20Choose the smallest regression set that gives justified confidence for a given change, and make the risk of what is not run visible to the people deciding to ship.2122## When to use23- A hotfix, patch or feature release must be retested in limited time.24- The full regression suite takes longer than the release window allows.25- A shared component, library or configuration changed and its reach is unclear.2627## When not to use28- You need to decide what is worth automating long term. Use `automation-candidate-selection`.29- You need test prioritization for a whole product, not a specific change. Use `risk-based-testing`.30- You need to find missing tests in code. Use `test-gap-finder`.3132## Inputs33Required:34- A description of the change (stories, commits, pull requests, configuration or dependency changes).3536Optional, improves quality:37- Existing test inventory with areas/tags, automation status and duration.38- Architecture or dependency map, recent defect and incident history, usage analytics.39- Time and environment budget for testing.4041If the change description is missing, ask for it. If no test inventory exists, output test areas and scenario names to cover instead of test IDs.4243## Process441. List each change item and classify it: code logic, shared library/dependency, data/schema, configuration/feature flag, infrastructure, UI only.452. Map direct impact: features, APIs, screens and batch jobs that call the changed code.463. Map indirect impact: consumers of shared components, data read or written by the change, integrations and downstream reports, security and permission paths. Mark inferred links `[ASSUMPTION]`.474. Add risk modifiers: business criticality, recent defects or incidents in the area, change complexity, first release of a dependency upgrade, low existing coverage.485. Select tests in tiers: Tier 1 must-run (verify the change itself plus high-risk direct impact), Tier 2 should-run (indirect impact, high-traffic journeys), Tier 3 optional (remaining related areas).496. Always include a smoke set of critical business journeys regardless of the change.507. Prefer automated tests where they exist; list manual tests only where automation does not cover the risk.518. Estimate effort per tier from given durations, or mark `[UNKNOWN]`; fit the plan to the time budget and state what is cut.529. Write the residual risk: areas intentionally not retested and why the risk is acceptable or needs sign-off.5310. Define the trigger to expand scope (e.g. any Tier 1 failure, defects found in indirect areas).5411. If the user continues, suggest `test-summary-report` to report results or `automation-candidate-selection` when manual Tier 1 tests recur.5556## Output format57```markdown58# Regression Selection: <release / change>59## Change Items60| Change | Type | Direct impact | Indirect impact | Risk modifiers |61|---|---|---|---|---|6263## Selected Tests64| Tier | Test / area | Reason (change link) | Auto/Manual | Est. effort |65|---|---|---|---|---|6667## Always-run Smoke Set68- ...6970## Not Selected and Residual Risk71- <area>: <why not> – <risk level, sign-off needed?>7273## Expansion Triggers74- ...75```7677## Quality checklist78- [ ] Every change item leads to at least one selected test or an explicit "no impact" justification.79- [ ] Indirect impacts through shared code, data and integrations are considered.80- [ ] Tiers fit the stated time budget, or the gap is stated.81- [ ] Residual risk names concrete areas, not "everything else".82- [ ] Inferred dependencies are marked `[ASSUMPTION]`.83- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.8485## Common pitfalls86- Testing only the changed feature. Regressions usually appear in consumers of shared code and data.87- Treating dependency upgrades as low risk. Library upgrades change behavior in serialization, dates, PDF rendering and security defaults.88- Silently skipping tests to meet the deadline. Record the cut and make the decision owner visible.8990## Example91Input: "Discount calculation service changed; PDF library upgraded; hotfix tomorrow."9293Excerpt of output:94| Tier | Test / area | Reason | Auto/Manual |95|---|---|---|---|96| 1 | Discount rules suite (percentage, fixed, stacked, caps) | Direct change | Auto |97| 1 | Invoice and credit note PDF rendering, Turkish characters, multi-page | Library upgrade | Manual |98| 2 | Order refund amount after discounted purchase | Consumes discount result | Auto |99| 2 | Monthly sales report totals | Reads discounted amounts `[ASSUMPTION]` | Manual |100101Residual risk: Loyalty points accrual not retested; it reads net amounts `[UNKNOWN]`; needs product owner sign-off.