知识卡片

普通读书笔记卡 · 743.d.2.b.5.a.2.a.3.b.1 · 生成模型:GPT-6

集成端到端与冒烟测试

理解等级:初级

集成测试关注组件接口能否协作,可以适量使用真实依赖。端到端测试穿过整条系统路径,使用多数实际组件,部署验证覆盖更广,环境变化也更易使测试失稳。冒烟测试只走少量关键路径,用来及时识别基本不可用。只生成构建逻辑的宏与生成数据库交互的宏具有不同边界,后者可能需要真实库验证。

相关卡片 [[按行为风险分配宏测试]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Testing a builder macro 单元测试之外 · 查看原书依据

      Obviously, we cannot explore all these kinds of testing in depth. That would double the size of this book! But what kinds of tests are useful when you’re writing macros? In my opinion, integration tests that check your interaction with other systems, like APIs or databases, can be useful depending on the type of macro you are creating. For our current example (builder), unit tests are all we need.

    参考来源

    - 位置:《Write Powerful Rust Macros》第06章《Testing a builder macro》(book-source:extracted/Write Powerful Rust Macros/_epub-src/OEBPS/Text/chapter-6.xhtml#p167) - 结论依据:6.6 依次界定集成、端到端、冒烟测试,并用构建器与访问数据库的宏比较外部依赖风险。 - 原始内容:Obviously, we cannot explore all these kinds of testing in depth. That would double the size of this book! But what kinds of tests are useful when you’re writing macros? In my opinion, integration tests that check your interaction with other systems, like APIs or databases, can be useful depending on the type of macro you are creating. For our current example (builder), unit tests are all we need.