Replies: 1 comment 1 reply
-
Yes you could (and probably should) test your presenter separately in specific unit tests. The whole point of presenter is to have "dumb" views, so the presenter acts as an humble object, easily testable without the hassle of end to end testing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I saw some videos and blogs videos said “Test UseCases”.
https://www.youtube.com/watch?v=3wxiQB2-m2k&t=0s
https://www.youtube.com/watch?v=IZWLnn2fNko
But, how do we test Presenter?
I mean the Presenter layer in Clean Architecture.
For example, I’m a mobile engineer. We have many presentation logics before showing displays.
In my opinion, 2 is better since sometimes there are many complex logics in Presenter, so it could be easier to assert the logics and find what's wrong quickly in independent tests. (although we need to be careful to frequent test code change.)
How do you think about it?
Thank you.
I'm not good at English, so sorry fo my poor English.
Beta Was this translation helpful? Give feedback.
All reactions