知识卡片
声明复述测试价值低
对硬编码声明逐条断言同样的名称和地址,通常只是在复制实现。未部署可用少量冒烟检查发现;工具的已知缺陷可专门回归,但没有必要假设工具处处有错;代码变更却忘改测试的风险更是测试自身制造的。应优先测试变量逻辑、组合效果和业务所需结果。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 基础设施代码测试策略 · 查看原书依据
A suite of low-level tests of declarative code can become a bookkeeping exercise. Every time you change the infrastructure code, you change the test to match. What value do these tests provide? Well, testing is about managing risks, so let’s consider what risks the preceding
参考来源
- 位置:《Infrastructure As Code》第17章《基础设施代码测试策略》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch17.html)
- 结论依据:原文在该段定义概念并解释相关过程或限制,支撑“对硬编码声明逐条断言同样的名称和地址,通常只是在复制实现”这一核心结论;正文的用途与边界据同小节后续论述整理。
- 原始内容:A suite of low-level tests of declarative code can become a bookkeeping exercise. Every time you change the infrastructure code, you change the test to match. What value do these tests provide? Well, testing is about managing risks, so let’s consider what risks the preceding