知识卡片
临时持久环境的权衡
临时测试环境每次创建销毁,状态干净、结果一致但反馈慢;持久环境省去创建时间,却可能积累漂移和测试残留,还持续付费。选择应按测试用途与实测效果调整;需要发现长期运行问题时,应明确设计浸泡测试,不应把偶然长期保留当作充分验证。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 基础设施代码测试策略 · 查看原书依据
For online tests, you may create and destroy an instance of the infrastructure each time you test it (an ephemeral instance), or you may leave an instance running in between runs (persistent instances). Using ephemeral instances can make tests significantly slower, but it’s cleaner and
参考来源
- 位置:《Infrastructure As Code》第17章《基础设施代码测试策略》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch17.html)
- 结论依据:原文在该段定义概念并解释相关过程或限制,支撑“临时测试环境每次创建销毁,状态干净、结果一致但反馈慢;持久环境省去创建时间,却可能积累漂移和测试残留,还持续付费”这一核心结论;正文的用途与边界据同小节后续论述整理。
- 原始内容:For online tests, you may create and destroy an instance of the infrastructure each time you test it (an ephemeral instance), or you may leave an instance running in between runs (persistent instances). Using ephemeral instances can make tests significantly slower, but it’s cleaner and