46 lines
1.0 KiB
Markdown
46 lines
1.0 KiB
Markdown
|
|
# T576 — test-m4-crm-conversion-integration
|
|||
|
|
|
|||
|
|
> Status: `done`
|
|||
|
|
> Milestone: `M4`
|
|||
|
|
> Kind: `test`
|
|||
|
|
> Est. change: `~200 lines`
|
|||
|
|
|
|||
|
|
## Goal
|
|||
|
|
|
|||
|
|
完成後系統應:CR-01~CR-09 有整合測試,且既有成果歸因回歸(RG-03)通過。
|
|||
|
|
|
|||
|
|
## Depends on
|
|||
|
|
|
|||
|
|
- T571、T573
|
|||
|
|
|
|||
|
|
## Inputs
|
|||
|
|
|
|||
|
|
- Spec:`../spec.md` §9.4、§9.6(RG-03)
|
|||
|
|
|
|||
|
|
## Outputs
|
|||
|
|
|
|||
|
|
### 程式變更(預期路徑)
|
|||
|
|
|
|||
|
|
| 路徑 | 動作 | 說明 |
|
|||
|
|
|------|------|------|
|
|||
|
|
| `apps/backend/internal/logic/crm/m4_integration_test.go` | add | accept→階段→merge→成交→改刪 全鏈路 |
|
|||
|
|
| `apps/backend/internal/module/growth/**_test.go` | edit | radar 成交併入既有彙總的斷言 |
|
|||
|
|
|
|||
|
|
### 行為變更
|
|||
|
|
|
|||
|
|
- 無(測試)。
|
|||
|
|
|
|||
|
|
## Out of scope
|
|||
|
|
|
|||
|
|
- FollowUp 與統計(T592)
|
|||
|
|
|
|||
|
|
## Acceptance
|
|||
|
|
|
|||
|
|
- [x] 九個 CR ID 各有具名 test case
|
|||
|
|
- [x] RG-03:既有成果卡數字在加入 radar 成交後仍正確彙總
|
|||
|
|
- [x] 指令:
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
cd apps/backend && go test ./internal/logic/crm/... ./internal/module/crm/... ./internal/module/growth/... -count=1 && make test-integration
|
|||
|
|
```
|