← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 8755.c · 生成模型:GPT-6

回归用例保留已知失效条件

理解等级:中级

修复前先用测试重现已知错误,再验证修复,能把经验变成后续保护。它只防住已覆盖的等价失效条件,不保证相似bug永不以新输入或路径出现;需持续扩展证据。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Tests let us “catch bugs once” As we’ve established, you should be writing tests as part of feature development. Bug fixes or production incident responses are no different in that you should also be writing tests as part of the fix. By writing the test first to reproduce the error scenario, you have a firm starting point and you can run the tests very quickly

    参考来源

    - 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第05章《软件自动化测试》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch05.html) - 结论依据:摘录中关于回归用例保留已知失效条件的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:Tests let us “catch bugs once” As we’ve established, you should be writing tests as part of feature development. Bug fixes or production incident responses are no different in that you should also be writing tests as part of the fix. By writing the test first to reproduce the error scenario, you have a firm starting point and you can run the tests very quickly