Testing Strategy(测试策略)
知识库位置:
FDE Knowledge Base/03 Engineering/Software Engineering/Testing/Testing-Strategy.md
FDE 项目往往追求速度,但不能因此完全忽略测试。
推荐分层:
Unit Test(单元测试)↓Integration Test(集成测试)↓End-to-End Test(端到端测试)↓Production Monitoring(生产监控)Unit Test(单元测试)
Section titled “Unit Test(单元测试)”验证单个逻辑。
例如:
- Permission function(权限函数)
- Data transformation(数据转换)
- Business rule(业务规则)
Integration Test(集成测试)
Section titled “Integration Test(集成测试)”验证系统之间是否正确连接。
例如:
Application(应用)↔CRM Sandbox(客户关系管理系统沙箱环境)End-to-End Test(端到端测试)
Section titled “End-to-End Test(端到端测试)”验证完整流程:
User(用户)↓Application(应用)↓Agent(智能体)↓CRM(客户关系管理系统)↓Result(结果)AI Testing(AI 测试)
Section titled “AI Testing(AI 测试)”AI 系统除了传统测试,还应该测试:
- Prompt behavior(提示词行为)
- Tool selection(工具选择)
- Retrieval(检索)
- Structured output(结构化输出)
- Hallucination(幻觉)
- Safety(安全性)
FDE Principle(FDE 原则)
Section titled “FDE Principle(FDE 原则)”优先测试:
对业务风险最大的路径。
而不是单纯追求:
100% Code Coverage(100% 代码覆盖率)