From 5ee1e0a4b944ffe7afce82f06b5e03ee2132f701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Gierwia=C5=82o?= Date: Sun, 30 Nov 2025 00:02:42 +0100 Subject: [PATCH] docs: add matching integration tests to high priority tasks --- docs/TODO.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/TODO.md b/docs/TODO.md index c3e25b8..1029673 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -23,6 +23,18 @@ - **Impact:** Tier system fairness algorithm depends on accurate karma tracking - **Dependencies:** Matches API, Ratings API, Recording Suggestions +**🟡 HIGH: Matching Algorithm Integration Tests** +- **Issue:** Only unit tests for helper functions exist, no end-to-end tests for `runMatching()` +- **Test Plan:** `backend/src/__tests__/matching-scenarios.md` (18 scenarios defined) +- **Priority Phases:** + 1. **Phase 1:** Fundamentals (TC1-3) - Basic happy path, NOT_FOUND scenarios + 2. **Phase 2:** Collision Detection (TC4-9) - Buffers, slot mapping + 3. **Phase 3:** Limits & Workload (TC10-11) - **CRITICAL bug verification** (recording-recording collision) + 4. **Phase 4:** Fairness & Tiers (TC12-16) - Tier penalties, sorting priority + 5. **Phase 5:** Edge Cases (TC17-18) - Sanity checks +- **Impact:** Ensures matching algorithm works correctly end-to-end, verifies critical bug fixes +- **Status:** Test plan documented, implementation pending + ### Recently Completed (2025-11-29) - 3-Tier Account System (BASIC/SUPPORTER/COMFORT) with fairness algorithm - Dual Buffer System (prep before + rest after dancing)