Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

todo #25

Open
vonzhou opened this issue Jul 23, 2020 · 0 comments
Open

todo #25

vonzhou opened this issue Jul 23, 2020 · 0 comments

Comments

@vonzhou
Copy link
Owner

vonzhou commented Jul 23, 2020

一个服务内部依赖外部服务的时候一定要提供注入点(构造器或者setter方法),这样可以方便用例中进行mock

每个接口各种场景都要测试到位,至少本系统内部逻辑是符合预期的

TDD,提测之前要有测试用例,因为事后补的话会发现有些接口设计不合理,或者缺少一些注入点。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant