---
name: risk-based-test-strategy
description: "Build a risk-based test strategy: score modules by impact and likelihood, compare with existing tests and rank what to test first instead of chasing a coverage percentage. Use when deciding what to test first or setting a test strategy."
---
# Risk-based test strategy (lite)
## When to use
- "What should I test first?" or "we need a test strategy".
- A minimum coverage target is demanded.
- Payments, auth or data modules have few tests.
- A test plan is needed for a release.
## Agent flow
1. List the modules with impact (1-5) and likelihood (1-5).
2. Write `modules.csv` with the columns `module,impact,likelihood,tests,changes,kinds`.
3. Run `sh scripts/rank.sh modules.csv`.
4. Read the findings, cross them with existing tests and recent changes.
5. Deliver a prioritized plan with a sufficiency criterion per module.
## Scripts
`scripts/rank.sh` prints the ranking as `rank:` lines and findings as `file:line: RULE message`. It covers SK093-R01, SK093-R03 and SK093-R06. Exit 0 no findings, 1 findings, 2 usage error. Use it on your own inventory only.
See `references/checklist.md` and `references/scoring.md`.
— ‹guest · 2026-12-03› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.