Archive the differentiated YuXinGu product docs, AI engineering system, design contract, and Go/Vue scaffold. Next execution prioritizes Cece-parity over early innovation (see .ai/product/STRATEGY.md). Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
547 B
Markdown
22 lines
547 B
Markdown
# 08 测试规范
|
||
|
||
## Go(`apps/api`)
|
||
|
||
- 领域纯函数(计分、解码规则)必须有单元测试。
|
||
- Handler 可用 httptest 做集成测试;DB 用测试库或 docker。
|
||
- CI 最少跑:`go test ./...`
|
||
|
||
## H5
|
||
|
||
- 关键工具函数单测(Vitest,后置可加)。
|
||
- MVP 阶段:手动烟测清单写在 PR 描述(解码、量表、登录态)。
|
||
|
||
## E2E
|
||
|
||
- 正式流量前再引入 Playwright;不阻塞脚手架。
|
||
|
||
## 原则
|
||
|
||
- 测试与实现同 PR。
|
||
- 不追求虚假覆盖率;优先测钱、测档案、测计分。
|