知识卡片

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

抖动测试应修复而非赌重跑

理解等级:中级

无变更却随机红绿会浪费排查并侵蚀门禁信任。应查根因、设合理容差或明确隔离处置,同时评估失去的风险覆盖;不能不记录就删测试,也不能以偶然跑绿视为问题解决。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      flaky tests—tests that pass or fail unpredictably even when nothing has changed. When we see a flaky test, we should either fix it or remove it. Otherwise, flaky tests will waste the team’s time in triaging and rerunning the tests until they pass by chance, and they also diminish our confidence in our tests and CI pipeline.

    参考来源

    - 位置:《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) - 结论依据:摘录中关于抖动测试应修复而非赌重跑的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:flaky tests—tests that pass or fail unpredictably even when nothing has changed. When we see a flaky test, we should either fix it or remove it. Otherwise, flaky tests will waste the team’s time in triaging and rerunning the tests until they pass by chance, and they also diminish our confidence in our tests and CI pipeline.