知识卡片
可测试性减少难以控制的状态
静态分析在不运行程序时按规则检查,动态测试在受控条件下执行并评价行为。单一职责、明确输入输出和较少副作用,有助于缩小测试需要探索的状态空间。测试覆盖已知条件仍不能证明所有未知环境安全,因此要结合设计边界与运行证据。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- It’s All About Dependability · 查看原书依据
Key to software testing is having software that’s designed for testability by minimizing the degrees of freedom — the range of possible states — of its components. Highly testable functions have a single purpose, with well-defined inputs and outputs and few or no side effects; that is, they don’t variables outside of their scope. If
参考来源
- 位置:《Cloud Native Go》第06章《It’s All About Dependability》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch06.xhtml)
- 结论依据:静态分析在不运行程序时按规则检查,动态测试在受控条件下执行并评价行为。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。
- 原始内容:Key to software testing is having software that’s designed for testability by minimizing the degrees of freedom — the range of possible states — of its components. Highly testable functions have a single purpose, with well-defined inputs and outputs and few or no side effects; that is, they don’t variables outside of their scope. If