知识卡片
函数测试与拓扑测试分工
函数测试验证变换、聚合的最小行为,拓扑测试把算子连接、时间和状态作为整体验证。驱动器可控制输入值、时间戳和乱序,覆盖单函数无法证明的分组与窗口行为;真实代理、网络、事务和分布式失败仍须集成测试。状态初值和边界应明确,不能仅断言正常输出。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Testing Event-Driven Microservices · 查看原书依据
Topology testing is more complex than a single unit test and exercises the entire topology as specified by your business logic. You can think of your topology as a single, large, complex function with many moving parts. The topology testing frameworks allow you to fully control which events are produced to the input streams as well as when they are created. You can generate events with specific values; events that
参考来源
- 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第15章《Testing Event-Driven Microservices》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch15.xhtml;规范化段落起句:Topology testing is more complex)
- 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:函数测试验证变换、聚合的最小行为,拓扑测试把算子连接、时间和状态作为整体验证。本卡同时保留其适用条件与失败边界。
- 原始内容:Topology testing is more complex than a single unit test and exercises the entire topology as specified by your business logic. You can think of your topology as a single, large, complex function with many moving parts. The topology testing frameworks allow you to fully control which events are produced to the input streams as well as when they are created. You can generate events with specific values; events that