Trey T
|
4c9a818bd9
|
Comprehensive TDD test suite for task logic — ~80 new tests
Predicates (20 cases): IsRecurring, IsOneTime, IsDueSoon,
HasCompletions, GetCompletionCount, IsUpcoming edge cases
Task creation (10): NextDueDate initialization, all frequency types,
past dates, all optional fields, access validation
One-time completion (8): NextDueDate→nil, InProgress reset,
notes/cost/rating, double completion, backdated completed_at
Recurring completion (16): Daily/Weekly/BiWeekly/Monthly/Quarterly/
Yearly/Custom frequencies, late/early completion timing, multiple
sequential completions, no-original-DueDate, CompletedFromColumn capture
QuickComplete (5): one-time, recurring, widget notes, 404, 403
State transitions (10): Cancel→Complete, Archive→Complete, InProgress
cycles, recurring full lifecycle, Archive→Unarchive column restore
Kanban column priority (7): verify chain priority order for all columns
Optimistic locking (7): correct/stale version, conflict on complete/
cancel/archive/mark-in-progress, rollback verification
Deletion (5): single/multi/middle completion deletion, NextDueDate
recalculation, InProgress restore behavior documented
Edge cases (9): boundary dates, late/early recurring, nil/zero frequency
days, custom intervals, version conflicts
Handler validation (4): rating bounds, title/description length,
custom interval validation
All 679 tests pass.
|
2026-03-26 17:36:50 -05:00 |
|