知识卡片
接口隔离测与链路测
可以隔离阻碍判断的依赖,对一项操作明确断言状态、媒体类型和正文。再从真实入口跑跨操作链路,确认权限、持久化和资源引用可以一起工作。两种检查定位问题的范围不同。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- The API prerelease checklist 21.3 Getting the API working · 查看原书依据
With unit tests, we are testing that the code works the way we expect it to for each operation. However, unit tests don’t capture what happens when all the units are composed together. For that, we need to do end-to-end testing. This
参考来源
- 位置:《Designing APIs with Swagger and OpenAPI》第21章《The API prerelease checklist》(来源项目 book-source:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch21.htm,阅读块 51)
- 结论依据:原文区分独立操作与组合后的行为。
- 原始内容:With unit tests, we are testing that the code works the way we expect it to for each operation. However, unit tests don’t capture what happens when all the units are composed together. For that, we need to do end-to-end testing. This