CounterDroneBackend/test/integration/index.md

467 B
Raw Blame History

test/integration — 集成测试

测试多个模块之间的协作或与外部系统数据库、消息队列、API的集成。

原则

  • 真实交互 — 连接真实的(或测试专用)外部系统
  • 关键路径 — 优先覆盖核心业务流程
  • 可重复 — 每次运行结果一致(注意数据准备和清理)

示例

  • 数据库读写操作的正确性
  • API 请求/响应完整链路
  • 消息队列的生产/消费