知识卡片
测试金字塔按反馈成本配比
快速低成本测试应占较多,慢而昂贵的端到端验证保留在真正需要跨组件信心的场景。金字塔是成本与反馈速度的指南,不是所有系统固定的测试数量公式。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Principles of Software Architecture Modernization》第7章《Proper Service Testing》(源文件:`_epub-src/OPS/ch07.xhtml`,归一化正文 [41945:46164))
- 结论依据:原文说明不同测试速度与成本不同,且前后端适用比例不同。
- 原始内容:The idea is that not all testing techniques have the same speed and cost. Some techniques are high-speed and cost almost nothing but aren’t comprehensive, like unit tests, whereas other tests are expensive to build/maintain and also take a long time to run, like UI / E2E tests. A proper testing strategy should rely on many cheap and fast tests vs slow and expensive tests to balance integration, cost and speed.