← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4581

测试重点跟随逻辑位置

理解等级:高级

测试策略应把重点放在真正承载业务风险的边界。领域模型的聚合和值对象形成清楚单元,适合单元测试多的金字塔;活动记录的行为跨应用编排和对象层,菱形策略偏重集成测试;事务脚本逻辑简单、层次少,可偏重端到端流程。不是取消其他层次测试,而是调整投入比例。原文Testing Diamond段末误写pyramid,此处依其标题及“integration tests”主旨解释。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 设计启发式 · 查看原书依据

      The difference between the testing strategies in the figure is their emphasis on the different types of tests: unit, integration, and end-to-end. Let’s analyze each strategy and the context in which each pattern should be used. Testing Pyramid The classic testing pyramid emphasizes unit tests, fewer integration tests, and even fewer end-to-end tests. Both variants

    参考来源

    - 位置:《Learning Domain-Driven Design》第10章《设计启发式》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch10.html) - 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。 - 原始内容:The difference between the testing strategies in the figure is their emphasis on the different types of tests: unit, integration, and end-to-end. Let’s analyze each strategy and the context in which each pattern should be used. Testing Pyramid The classic testing pyramid emphasizes unit tests, fewer integration tests, and even fewer end-to-end tests. Both variants