Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

checklist.md 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. # Test Design and Risk Assessment - Validation Checklist
  2. ## Prerequisites (Mode-Dependent)
  3. **System-Level Mode (Phase 3):**
  4. - [ ] PRD exists with functional and non-functional requirements
  5. - [ ] ADR (Architecture Decision Record) exists
  6. - [ ] Architecture document available (architecture.md or tech-spec)
  7. - [ ] Requirements are testable and unambiguous
  8. **Epic-Level Mode (Phase 4):**
  9. - [ ] Story markdown with clear acceptance criteria exists
  10. - [ ] PRD or epic documentation available
  11. - [ ] Architecture documents available (test-design-architecture.md + test-design-qa.md from Phase 3, if exists)
  12. - [ ] Requirements are testable and unambiguous
  13. ## Process Steps
  14. ### Step 1: Context Loading
  15. - [ ] PRD.md read and requirements extracted
  16. - [ ] Epics.md or specific epic documentation loaded
  17. - [ ] Story markdown with acceptance criteria analyzed
  18. - [ ] Architecture documents reviewed (if available)
  19. - [ ] Existing test coverage analyzed
  20. - [ ] Knowledge base fragments loaded (risk-governance, probability-impact, test-levels, test-priorities)
  21. - [ ] `nfr-criteria.md` loaded for system-level mode, and for epic-level mode when NFRs are in scope
  22. ### Step 2: Risk Assessment
  23. - [ ] Genuine risks identified (not just features)
  24. - [ ] Risks classified by category (TECH/SEC/PERF/DATA/BUS/OPS)
  25. - [ ] Probability scored (1-3 for each risk)
  26. - [ ] Impact scored (1-3 for each risk)
  27. - [ ] Risk scores calculated (probability × impact)
  28. - [ ] High-priority risks (score ≥6) flagged
  29. - [ ] Mitigation plans defined for high-priority risks
  30. - [ ] Owners assigned for each mitigation
  31. - [ ] Timelines set for mitigations
  32. - [ ] Residual risk documented
  33. ### Step 2A: NFR Planning
  34. - [ ] NFR categories in scope identified (security, performance, reliability, scalability, maintainability, compliance, custom)
  35. - [ ] NFR thresholds extracted from PRD, architecture, ADRs, epics, or stories
  36. - [ ] Unknown thresholds marked as UNKNOWN; no values guessed
  37. - [ ] Missing thresholds converted into risks, assumptions, blockers, or clarification items
  38. - [ ] Planned evidence sources identified for later `nfr-assess`
  39. - [ ] NFR-derived risks mapped into the normal risk register using SEC/PERF/OPS/TECH/DATA categories
  40. ### Step 3: Coverage Design
  41. - [ ] Acceptance criteria broken into atomic scenarios
  42. - [ ] Test levels selected (E2E/API/Component/Unit)
  43. - [ ] No duplicate coverage across levels
  44. - [ ] Priority levels assigned (P0/P1/P2/P3)
  45. - [ ] P0 scenarios meet strict criteria (blocks core + high risk + no workaround)
  46. - [ ] NFR-derived risks mapped to planned validation scenarios
  47. - [ ] Planned NFR evidence artifacts documented without final PASS/CONCERNS/FAIL decisions
  48. - [ ] Data prerequisites identified
  49. - [ ] Tooling/access requirements documented when applicable
  50. - [ ] Execution order defined (smoke → P0 → P1 → P2/P3)
  51. ### Step 4: Deliverables Generation
  52. - [ ] Risk assessment matrix created
  53. - [ ] Coverage matrix created
  54. - [ ] Execution order documented
  55. - [ ] Resource estimates calculated
  56. - [ ] Quality gate criteria defined
  57. - [ ] NFR planning summary included when NFRs are in scope
  58. - [ ] Output file written to correct location
  59. - [ ] Output file uses template structure
  60. ## Output Validation
  61. ### Risk Assessment Matrix
  62. - [ ] All risks have unique IDs (R-001, R-002, etc.)
  63. - [ ] Each risk has category assigned
  64. - [ ] Probability values are 1, 2, or 3
  65. - [ ] Impact values are 1, 2, or 3
  66. - [ ] Scores calculated correctly (P × I)
  67. - [ ] High-priority risks (≥6) clearly marked
  68. - [ ] Mitigation strategies specific and actionable
  69. ### Coverage Matrix
  70. - [ ] All requirements mapped to test levels
  71. - [ ] Priorities assigned to all scenarios
  72. - [ ] Risk linkage documented
  73. - [ ] Test counts realistic
  74. - [ ] Owners assigned where applicable
  75. - [ ] No duplicate coverage (same behavior at multiple levels)
  76. ### Execution Strategy
  77. **CRITICAL: Keep execution strategy simple, avoid redundancy**
  78. - [ ] **Simple structure**: PR / Nightly / Weekly (NOT complex smoke/P0/P1/P2 tiers)
  79. - [ ] **PR execution**: All functional tests unless significant infrastructure overhead
  80. - [ ] **Nightly/Weekly**: Only performance, chaos, long-running, manual tests
  81. - [ ] **No redundancy**: Don't re-list all tests (already in coverage plan)
  82. - [ ] **Philosophy stated**: "Run everything in PRs if <15 min, defer only if expensive/long"
  83. - [ ] **Playwright parallelization noted**: 100s of tests in 10-15 min
  84. ### Resource Estimates
  85. **CRITICAL: Use intervals/ranges, NOT exact numbers**
  86. - [ ] P0 effort provided as interval range (e.g., "~25-40 hours" NOT "36 hours")
  87. - [ ] P1 effort provided as interval range (e.g., "~20-35 hours" NOT "27 hours")
  88. - [ ] P2 effort provided as interval range (e.g., "~10-30 hours" NOT "15.5 hours")
  89. - [ ] P3 effort provided as interval range (e.g., "~2-5 hours" NOT "2.5 hours")
  90. - [ ] Total effort provided as interval range (e.g., "~55-110 hours" NOT "81 hours")
  91. - [ ] Timeline provided as week range (e.g., "~1.5-3 weeks" NOT "11 days")
  92. - [ ] Estimates include setup time and account for complexity variations
  93. - [ ] **No false precision**: Avoid exact calculations like "18 tests × 2 hours = 36 hours"
  94. ### Quality Gate Criteria
  95. - [ ] P0 pass rate threshold defined (should be 100%)
  96. - [ ] P1 pass rate threshold defined (typically ≥95%)
  97. - [ ] High-risk mitigation completion required
  98. - [ ] Coverage targets specified (≥80% recommended)
  99. - [ ] NFR evidence expectation defined for each in-scope NFR category
  100. - [ ] Full NFR evidence decision deferred to `nfr-assess`
  101. ## Quality Checks
  102. ### Evidence-Based Assessment
  103. - [ ] Risk assessment based on documented evidence
  104. - [ ] No speculation on business impact
  105. - [ ] Assumptions clearly documented
  106. - [ ] Clarifications requested where needed
  107. - [ ] Historical data referenced where available
  108. ### Risk Classification Accuracy
  109. - [ ] TECH risks are architecture/integration issues
  110. - [ ] SEC risks are security vulnerabilities
  111. - [ ] PERF risks are performance/scalability concerns
  112. - [ ] DATA risks are data integrity issues
  113. - [ ] BUS risks are business/revenue impacts
  114. - [ ] OPS risks are deployment/operational issues
  115. ### Priority Assignment Accuracy
  116. **CRITICAL: Priority classification is separate from execution timing**
  117. - [ ] **Priority sections (P0/P1/P2/P3) do NOT include execution context** (e.g., no "Run on every commit" in headers)
  118. - [ ] **Priority sections have only "Criteria" and "Purpose"** (no "Execution:" field)
  119. - [ ] **Execution Strategy section** is separate and handles timing based on infrastructure overhead
  120. - [ ] P0: Truly blocks core functionality + High-risk (≥6) + No workaround
  121. - [ ] P1: Important features + Medium-risk (3-4) + Common workflows
  122. - [ ] P2: Secondary features + Low-risk (1-2) + Edge cases
  123. - [ ] P3: Nice-to-have + Exploratory + Benchmarks
  124. - [ ] **Note at top of Test Coverage Plan**: Clarifies P0/P1/P2/P3 = priority/risk, NOT execution timing
  125. ### Test Level Selection
  126. - [ ] E2E used only for critical paths
  127. - [ ] API tests cover complex business logic
  128. - [ ] Component tests for UI interactions
  129. - [ ] Unit tests for edge cases and algorithms
  130. - [ ] No redundant coverage
  131. ## Integration Points
  132. ### Knowledge Base Integration
  133. - [ ] risk-governance.md consulted
  134. - [ ] probability-impact.md applied
  135. - [ ] test-levels-framework.md referenced
  136. - [ ] test-priorities-matrix.md used
  137. - [ ] nfr-criteria.md consulted for NFR planning when applicable
  138. - [ ] Additional fragments loaded as needed
  139. ### Status File Integration
  140. - [ ] Test design logged in Quality & Testing Progress
  141. - [ ] Epic number and scope documented
  142. - [ ] Completion timestamp recorded
  143. ### Workflow Dependencies
  144. - [ ] Can proceed to `*atdd` workflow with P0 scenarios
  145. - [ ] `*atdd` is a separate workflow and must be run explicitly (not auto-run)
  146. - [ ] Can proceed to `automate` workflow with full coverage plan
  147. - [ ] Risk assessment informs `gate` workflow criteria
  148. - [ ] Integrates with `ci` workflow execution order
  149. ## Accountability & Logistics
  150. ### Not in Scope
  151. - [ ] Out-of-scope items explicitly listed with reasoning
  152. - [ ] Mitigation noted for each excluded item
  153. - [ ] Exclusions reviewed and accepted by stakeholders
  154. ### Entry Criteria
  155. - [ ] Prerequisites for testing start are clearly defined
  156. - [ ] Environment readiness included
  157. - [ ] Test data readiness included
  158. - [ ] Pre-implementation blocker resolution referenced
  159. ### Exit Criteria
  160. - [ ] Pass/fail thresholds defined for each priority level
  161. - [ ] Bug severity gate defined (e.g., no open P0/P1 bugs)
  162. - [ ] Coverage sufficiency criteria specified
  163. ### Project Team (Optional)
  164. - [ ] If included, key roles identified (QA Lead, Dev Lead, PM, Architect minimum)
  165. - [ ] If included, testing responsibilities mapped to roles
  166. - [ ] If included, names populated where available (placeholders acceptable for draft)
  167. ### Tooling & Access (System-Level Only, If Applicable)
  168. - [ ] If non-standard tools or access requests exist, list them
  169. - [ ] Access requirements identified for each tool/service
  170. - [ ] Status tracked (Ready/Pending) when applicable
  171. ### Interworking & Regression
  172. - [ ] Impacted services/components identified
  173. - [ ] Regression scope defined per impacted service
  174. - [ ] Cross-team coordination noted where needed
  175. ## System-Level Mode: Two-Document Validation
  176. **When in system-level mode (PRD + ADR input), validate BOTH documents:**
  177. ### test-design-architecture.md
  178. - [ ] **Purpose statement** at top (serves as contract with Architecture team)
  179. - [ ] **Executive Summary** with scope, business context, architecture decisions, risk summary
  180. - [ ] **Quick Guide** section with three tiers:
  181. - [ ] 🚨 BLOCKERS - Team Must Decide (pre-implementation critical path items)
  182. - [ ] ⚠️ HIGH PRIORITY - Team Should Validate (recommendations for approval)
  183. - [ ] 📋 INFO ONLY - Solutions Provided (no decisions needed)
  184. - [ ] **Risk Assessment** section - **ACTIONABLE**
  185. - [ ] Total risks identified count
  186. - [ ] High-priority risks table (score ≥6) with all columns: Risk ID, Category, Description, Probability, Impact, Score, Mitigation, Owner, Timeline
  187. - [ ] Medium and low-priority risks tables
  188. - [ ] Risk category legend included
  189. - [ ] **Testability Concerns and Architectural Gaps** section - **ACTIONABLE**
  190. - [ ] **Sub-section: 🚨 ACTIONABLE CONCERNS** at TOP
  191. - [ ] Blockers to Fast Feedback table (WHAT architecture must provide)
  192. - [ ] Architectural Improvements Needed (WHAT must be changed)
  193. - [ ] Each concern has: Owner, Timeline, Impact
  194. - [ ] **Sub-section: Testability Assessment Summary** at BOTTOM (FYI)
  195. - [ ] What Works Well (passing items)
  196. - [ ] Accepted Trade-offs (no action required)
  197. - [ ] This section only included if worth mentioning; otherwise omitted
  198. - [ ] **Risk Mitigation Plans** for all high-priority risks (≥6)
  199. - [ ] Each plan has: Strategy (numbered steps), Owner, Timeline, Status, Verification
  200. - [ ] **Only Backend/DevOps/Arch/Security mitigations** (production code changes)
  201. - [ ] QA-owned mitigations belong in QA doc instead
  202. - [ ] **Assumptions and Dependencies** section
  203. - [ ] **Architectural assumptions only** (SLO targets, replication lag, system design)
  204. - [ ] Assumptions list (numbered)
  205. - [ ] Dependencies list with required dates
  206. - [ ] Risks to plan with impact and contingency
  207. - [ ] QA execution assumptions belong in QA doc instead
  208. - [ ] **NO test implementation code** (long examples belong in QA doc)
  209. - [ ] **NO test scripts** (no Playwright test(...) blocks, no assertions, no test setup code)
  210. - [ ] **NFR Testability Requirements are concise** (WHAT architecture must provide, thresholds, planned evidence; no full audit tables)
  211. - [ ] **NO test scenario checklists** (belong in QA doc)
  212. - [ ] **NO bloat or repetition** (consolidate repeated notes, avoid over-explanation)
  213. - [ ] **Cross-references to QA doc** where appropriate (instead of duplication)
  214. - [ ] **RECIPE SECTIONS NOT IN ARCHITECTURE DOC:**
  215. - [ ] NO "Test Levels Strategy" section (unit/integration/E2E split belongs in QA doc only)
  216. - [ ] NO "NFR Testing Approach" section with detailed test procedures (use concise NFR Testability Requirements only)
  217. - [ ] NO "Test Environment Requirements" section (belongs in QA doc only)
  218. - [ ] NO "Recommendations for pre-implementation" section with test framework setup (belongs in QA doc only)
  219. - [ ] NO "Quality Gate Criteria" section (pass rates, coverage targets belong in QA doc only)
  220. - [ ] NO "Tool Selection" section (Playwright, k6, etc. belongs in QA doc only)
  221. ### test-design-qa.md
  222. **REQUIRED SECTIONS:**
  223. - [ ] **Purpose statement** at top (test execution recipe)
  224. - [ ] **Executive Summary** with risk summary and coverage summary
  225. - [ ] **Dependencies & Test Blockers** section appears near the top (immediately after Executive Summary, or after Not in Scope)
  226. - [ ] Backend/Architecture dependencies listed (what QA needs from other teams)
  227. - [ ] QA infrastructure setup listed (factories, fixtures, environments)
  228. - [ ] Code example with playwright-utils if config.tea_use_playwright_utils is true
  229. - [ ] Test from '@seontechnologies/playwright-utils/api-request/fixtures'
  230. - [ ] Expect from '@playwright/test' (playwright-utils does not re-export expect)
  231. - [ ] Code examples include assertions (no unused imports)
  232. - [ ] **Risk Assessment** section (brief, references Architecture doc)
  233. - [ ] High-priority risks table
  234. - [ ] Medium/low-priority risks table
  235. - [ ] Each risk shows "QA Test Coverage" column (how QA validates)
  236. - [ ] **Test Coverage Plan** with P0/P1/P2/P3 sections
  237. - [ ] Priority sections have ONLY "Criteria" (no execution context)
  238. - [ ] Note at top: "P0/P1/P2/P3 = priority, NOT execution timing"
  239. - [ ] Test tables with columns: Test ID | Requirement | Test Level | Risk Link | Notes
  240. - [ ] **NFR Test Coverage Plan** section
  241. - [ ] Maps NFR category to requirement/threshold, planned validation, tool/level, evidence artifact, and priority
  242. - [ ] Lists missing thresholds or missing evidence sources
  243. - [ ] Does not assign final PASS/CONCERNS/FAIL status
  244. - [ ] **Execution Strategy** section (organized by TOOL TYPE)
  245. - [ ] Every PR: Playwright tests (~10-15 min)
  246. - [ ] Nightly: k6 performance tests (~30-60 min)
  247. - [ ] Weekly: Chaos & long-running (~hours)
  248. - [ ] Philosophy: "Run everything in PRs unless expensive/long-running"
  249. - [ ] **QA Effort Estimate** section (QA effort ONLY)
  250. - [ ] Interval-based estimates (e.g., "~1-2 weeks" NOT "36 hours")
  251. - [ ] NO DevOps, Backend, Data Eng, Finance effort
  252. - [ ] No per-milestone effort breakdowns in this section
  253. - [ ] **Implementation Planning Handoff** section (optional)
  254. - [ ] Only include if implementation tasks must be scheduled
  255. - [ ] Owners assigned (QA/Dev/Platform/etc)
  256. - [ ] Target milestone may be noted, but avoid detailed per-milestone breakdowns
  257. - [ ] **Appendix A: Code Examples & Tagging**
  258. - [ ] **Appendix B: Knowledge Base References**
  259. **DON'T INCLUDE (bloat):**
  260. - [ ] ❌ NO Quick Reference section
  261. - [ ] ❌ NO System Architecture Summary
  262. - [ ] ❌ NO Test Environment Requirements as separate section (integrate into Dependencies)
  263. - [ ] ❌ NO Testability Assessment section (covered in Dependencies)
  264. - [ ] ❌ NO Test Levels Strategy section (obvious from test scenarios)
  265. - [ ] ❌ NO full NFR Evidence Audit or final PASS/CONCERNS/FAIL decisions
  266. - [ ] ❌ NO Quality Gate Criteria section (teams decide for themselves)
  267. - [ ] ❌ NO Follow-on Workflows section (BMAD commands self-explanatory)
  268. - [ ] ❌ NO Approval section
  269. - [ ] ❌ NO Infrastructure/DevOps/Finance effort tables (out of scope)
  270. - [ ] ❌ NO detailed milestone-by-milestone breakdown tables (use Implementation Planning Handoff if needed)
  271. - [ ] ❌ NO generic Next Steps section (use Implementation Planning Handoff if needed)
  272. ### Cross-Document Consistency
  273. - [ ] Both documents reference same risks by ID (R-001, R-002, etc.)
  274. - [ ] Both documents use consistent priority levels (P0, P1, P2, P3)
  275. - [ ] Both documents reference same pre-implementation blockers
  276. - [ ] No duplicate content (cross-reference instead)
  277. - [ ] Dates and authors match across documents
  278. - [ ] ADR and PRD references consistent
  279. ### Document Quality (Anti-Bloat Check)
  280. **CRITICAL: Check for bloat and repetition across BOTH documents**
  281. - [ ] **No repeated notes 10+ times** (e.g., "Timing is pessimistic until R-005 fixed" on every section)
  282. - [ ] **Repeated information consolidated** (write once at top, reference briefly if needed)
  283. - [ ] **No excessive detail** that doesn't add value (obvious concepts, redundant examples)
  284. - [ ] **Focus on unique/critical info** (only document what's different from standard practice)
  285. - [ ] **Architecture doc**: Concerns-focused, NOT implementation-focused
  286. - [ ] **QA doc**: Implementation-focused, NOT theory-focused
  287. - [ ] **Clear separation**: Architecture = WHAT and WHY, QA = HOW
  288. - [ ] **Professional tone**: No AI slop markers
  289. - [ ] Avoid excessive ✅/❌ emojis (use sparingly, only when adding clarity)
  290. - [ ] Avoid "absolutely", "excellent", "fantastic", overly enthusiastic language
  291. - [ ] Write professionally and directly
  292. - [ ] **Architecture doc length**: Target ~150-200 lines max (focus on actionable concerns only)
  293. - [ ] **QA doc length**: Keep concise, remove bloat sections
  294. ### Architecture Doc Structure (Actionable-First Principle)
  295. **CRITICAL: Validate structure follows actionable-first, FYI-last principle**
  296. - [ ] **Actionable sections at TOP:**
  297. - [ ] Quick Guide (🚨 BLOCKERS first, then ⚠️ HIGH PRIORITY, then 📋 INFO ONLY last)
  298. - [ ] Risk Assessment (high-priority risks ≥6 at top)
  299. - [ ] Testability Concerns (concerns/blockers at top, passing items at bottom)
  300. - [ ] Risk Mitigation Plans (for high-priority risks ≥6)
  301. - [ ] **FYI sections at BOTTOM:**
  302. - [ ] Testability Assessment Summary (what works well - only if worth mentioning)
  303. - [ ] Assumptions and Dependencies
  304. - [ ] **ASRs categorized correctly:**
  305. - [ ] Actionable ASRs included in 🚨 or ⚠️ sections
  306. - [ ] FYI ASRs included in 📋 section or omitted if obvious
  307. ## BMAD Handoff Validation (System-Level Mode Only)
  308. - [ ] Handoff document generated at `{test_artifacts}/test-design/{project_name}-handoff.md`
  309. - [ ] TEA Artifacts Inventory table populated with actual paths
  310. - [ ] Epic-Level Integration Guidance populated with P0/P1 risks
  311. - [ ] Story-Level Integration Guidance populated with critical test scenarios
  312. - [ ] Risk-to-Story Mapping table populated from risk register
  313. - [ ] Recommended workflow sequence is accurate
  314. - [ ] Phase transition quality gates are defined
  315. ## Completion Criteria
  316. **All must be true:**
  317. - [ ] All prerequisites met
  318. - [ ] All process steps completed
  319. - [ ] All output validations passed
  320. - [ ] All quality checks passed
  321. - [ ] All integration points verified
  322. - [ ] Output file(s) complete and well-formatted
  323. - [ ] **System-level mode:** Both documents validated (if applicable)
  324. - [ ] **System-level mode:** Handoff document validated (if applicable)
  325. - [ ] **Epic-level mode:** Single document validated (if applicable)
  326. - [ ] Team review scheduled (if required)
  327. ## Post-Workflow Actions
  328. **User must complete:**
  329. 1. [ ] Review risk assessment with team
  330. 2. [ ] Prioritize mitigation for high-priority risks (score ≥6)
  331. 3. [ ] Allocate resources per estimates
  332. 4. [ ] Run `*atdd` workflow to generate P0 tests (separate workflow; not auto-run)
  333. 5. [ ] Set up test data factories and fixtures
  334. 6. [ ] Schedule team review of test design document
  335. **Recommended next workflows:**
  336. 1. [ ] Run `atdd` workflow for P0 test generation
  337. 2. [ ] Run `framework` workflow if not already done
  338. 3. [ ] Run `ci` workflow to configure pipeline stages
  339. ## Rollback Procedure
  340. If workflow fails:
  341. 1. [ ] Delete output file
  342. 2. [ ] Review error logs
  343. 3. [ ] Fix missing context (PRD, architecture docs)
  344. 4. [ ] Clarify ambiguous requirements
  345. 5. [ ] Retry workflow
  346. ## Notes
  347. ### Common Issues
  348. **Issue**: Too many P0 tests
  349. - **Solution**: Apply strict P0 criteria - must block core AND high risk AND no workaround
  350. **Issue**: Risk scores all high
  351. - **Solution**: Differentiate between high-impact (3) and degraded (2) impacts
  352. **Issue**: Duplicate coverage across levels
  353. - **Solution**: Use test pyramid - E2E for critical paths only
  354. **Issue**: Resource estimates too high or too precise
  355. - **Solution**:
  356. - Invest in fixtures/factories to reduce per-test setup time
  357. - Use interval ranges (e.g., "~55-110 hours") instead of exact numbers (e.g., "81 hours")
  358. - Widen intervals if high uncertainty exists
  359. **Issue**: Execution order section too complex or redundant
  360. - **Solution**:
  361. - Default: Run everything in PRs (<15 min with Playwright parallelization)
  362. - Only defer to nightly/weekly if expensive (k6, chaos, 4+ hour tests)
  363. - Don't create smoke/P0/P1/P2/P3 tier structure
  364. - Don't re-list all tests (already in coverage plan)
  365. ### Best Practices
  366. - Base risk assessment on evidence, not assumptions
  367. - High-priority risks (≥6) require immediate mitigation
  368. - P0 tests should cover <10% of total scenarios
  369. - Avoid testing same behavior at multiple levels
  370. - **Use interval-based estimates** (e.g., "~25-40 hours") instead of exact numbers to avoid false precision and provide flexibility
  371. - **Keep execution strategy simple**: Default to "run everything in PRs" (<15 min with Playwright), only defer if expensive/long-running
  372. - **Avoid execution order redundancy**: Don't create complex tier structures or re-list tests
  373. ---
  374. **Checklist Complete**: Sign off when all items validated.
  375. **Completed by:** {name}
  376. **Date:** {date}
  377. **Epic:** {epic title}
  378. **Notes:** {additional notes}