thread-master/docs/product/growth-loop/TESTING.md

32 lines
701 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.

# growth-loop 測試
```bash
cd apps/backend
go test ./internal/module/growth/... -count=1
go build -o bin/gateway .
go build -o bin/worker ./cmd/worker
cd apps/web
npm run build
```
## Spec §9 覆蓋usecase 測試)
| ID | Test |
|----|------|
| OC-01 | TestOC_01_CreateOnPublished |
| OC-02/03 | TestOC_02_03_ApplySignals |
| OC-04/05 | TestOC_04_05_Conversion |
| OC-08 | TestOC_08_DegradedStillWorks |
| CU-* | TestCU_01_02_03_GenerateCheckup |
| AH-* | TestAH_01_03_HealthGate |
| IR-* | TestIR_01_03_InviteReward |
| WS-* | TestWS_01_02_Workspace, TestWS_03_04_ReviewGate, TestWS_05_ExportReport |
## 遷移
```bash
cd apps/backend && make migrate-up
# 000013_growth_loop_indexes
```