Documentation
README
后端测试编写指南
测试要求(强制)
职责边界:Backend Agent 是测试的编写者,QA Agent 是测试的验证者。
测试金字塔
| 测试类型 | 占比 | 要求 |
|---|---|---|
| 单元测试 | ~70% | Service 层、业务逻辑必须有测试 |
| 集成测试 | ~20% | API 端点、数据库操作测试 |
| E2E 测试 | ~10% | 必须编写,完整 API 流程测试 |
单元测试编写
Service 层测试
This is the opening of the README. Read the full README on GitHub.