thread-master/docs/product/demand-radar/tasks/T592-test-m5-followup-stats...

46 lines
1009 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# T592 — test-m5-followup-stats-integration
> Status: `done`
> Milestone: `M5`
> Kind: `test`
> Est. change: `~180 lines`
## Goal
完成後系統應FU-01FU-04、ST-01ST-03、QT-03 有整合測試把關。
## Depends on
- T588、T589、T590
## Inputs
- Spec`../spec.md` §9.4FU、§9.5
## Outputs
### 程式變更(預期路徑)
| 路徑 | 動作 | 說明 |
|------|------|------|
| `apps/backend/internal/module/crm/m5_integration_test.go` | add | followup 建立→掃描→通知→escalate→snoozedone |
| `apps/backend/internal/logic/crm/stats_integration_test.go` | add | 三維度與樣本門檻 |
### 行為變更
- 無(測試)。
## Out of scope
- 橋接與全表回歸T602T603
## Acceptance
- [x] 八個 ID 各有具名 test case
- [x] 時間相關測試以可注入的時鐘控制,不用 sleep
- [x] 指令:
```bash
cd apps/backend && go test ./internal/module/crm/... ./internal/logic/crm/... -count=1 && make test-integration
```