[闲聊] TDD大师请进

楼主: SuicideComet (|)   2022-10-21 22:36:04
话说我目前为止学到的TDD
是类似 top-down
譬如说 controller-service-repository 架构
就是从 controller 开始写
然后依赖的部分全部都是用 mock 去处理这样
那有没有人是经手过 bottom-up 的
听说 bottom-up 好像就是用 actual class?
这样在测试上不会有问题吗?
阿那单元测试直接依赖外部服务可不可行?
希望大家可以分享一下经验
谢谢
作者: doramon888 (贝尔汪)   2022-10-21 22:39:00
哇~

Links booklink

Contact Us: admin [ a t ] ucptt.com