知识卡片

普通读书笔记卡 · 623.a.1.a

轻量夹具替换提供者

理解等级:中级

测试夹具只实现被测组件需要的最小基础设施。测试网络栈若只需要 VPC 和子网,夹具无需部署生产网络的全部安全、互联和日志。这样既缩短时间,也使失败主要归于被测组件;真实提供者与组件的兼容性留到后续集成阶段检查。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 实现基础设施代码测试 · 查看原书依据

      A test fixture is a lightweight implementation of just enough system elements to support provisioning and testing the subject component, as shown in Figure 18-3. Figure 18-3. A test fixture The full environment-network stack in our example may provision complex infrastructure needed for production systems,

    参考来源

    - 位置:《Infrastructure As Code》第18章《实现基础设施代码测试》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch18.html) - 结论依据:原文在该段定义概念并解释相关过程或限制,支撑“测试夹具只实现被测组件需要的最小基础设施”这一核心结论;正文的用途与边界据同小节后续论述整理。 - 原始内容:A test fixture is a lightweight implementation of just enough system elements to support provisioning and testing the subject component, as shown in Figure 18-3. Figure 18-3. A test fixture The full environment-network stack in our example may provision complex infrastructure needed for production systems,