知识卡片
集成测试贴近消费者
跨组件测试常可放在消费者项目,因为测试知道消费者的入口、主机和端口,而提供者不该反向了解所有消费者。单组件测试与真实集成测试应分开。若单独建立集成测试项目,就要随实现同步修改测试,并显式关联组件版本与测试版本,防止错误组合。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 用流水线实现基础设施交付 · 查看原书依据
Integration tests also fit well in the project for a consumer component, rather than keeping them in the provider project. This avoids the provider component project needing to include knowledge of its consumers. Dedicated integration test projects An alternative approach is to create a separate
参考来源
- 位置:《Infrastructure As Code》第16章《用流水线实现基础设施交付》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch16.html)
- 结论依据:原文在该段定义概念并解释相关过程或限制,支撑“跨组件测试常可放在消费者项目,因为测试知道消费者的入口、主机和端口,而提供者不该反向了解所有消费者”这一核心结论;正文的用途与边界据同小节后续论述整理。
- 原始内容:Integration tests also fit well in the project for a consumer component, rather than keeping them in the provider project. This avoids the provider component project needing to include knowledge of its consumers. Dedicated integration test projects An alternative approach is to create a separate