- cross-posted to:
- technews@radiation.party
- cross-posted to:
- technews@radiation.party
Always interesting to hear different points of view on this subject. Personally I think mocks make sense to capture complex sets of interactions or otherwise difficult to reach error conditions, so I don’t think it’s a do or do-not kind of thing.
Mock is a necessary thing, but too much mocking is a bad thing.
imo, if your application is layered, then implementing a shallow integration testing and mock out external dependencies and input work better. More mocks make tests less reliable.
I aggree with