知识卡片
粗粒度测试保护重组
遗留系统缺少测试时,先在较高层包住关键行为,可以为结构重组建立安全网,再逐步提高模块性和测试粒度。单独全面补测试可能难以获得业务支持,结合实际变化更易产生反馈。高层保护也不证明内部所有路径都已覆盖。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Putting Evolutionary Architecture into Practice · 查看原书依据
It is generally frowned upon for developers to undertake a project that only adds tests to a codebase. Management looks upon this activity with suspicion, especially if new-feature implementation is delayed. Rather, architects should combine increasing modularity with high-level functional tests. Wrapping functionality with unit tests provides better scaffolding for engineering practices such as test-driven development (TDD) but takes time to retrofit into a codebase.
参考来源
- 位置:《Building Evolutionary Architectures Automated Software Governance, 2nd Edition》第09章《Putting Evolutionary Architecture into Practice》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Evolutionary Architectures Automated Software Governance, 2nd Edition/_epub-src/OEBPS/ch09.html;段落定位:add coarse-grained functional tests around some behavior)
- 结论依据:原文对“粗粒度测试保护重组”的定义或案例,支撑“遗留系统缺少测试时,先在较高层包住关键行为,可以为结构重组建立安全网,再逐步提高模块性和测试粒度”的归纳。据其上下文,单独全面补测试可能难以获得业务支持,结合实际变化更易产生反馈。
- 原始内容:It is generally frowned upon for developers to undertake a project that only adds tests to a codebase. Management looks upon this activity with suspicion, especially if new-feature implementation is delayed. Rather, architects should combine increasing modularity with high-level functional tests. Wrapping functionality with unit tests provides better scaffolding for engineering practices such as test-driven development (TDD) but takes time to retrofit into a codebase.