News for hackers. Stuff that matters.
Re:Database mocks are just not worth it by pdimitar on Wednesday January 01, 2025 @07:30AM (#42565643)
Guilty as charged, I mix them both freely; I use fakes but also assert that a function has (not) been called [N times]. The latter is mostly testing implementation but there are rare cases when it's too much work to mock a quality 3rd party library (say, an HTTP client) but you still want to mock parts of it and ensure they get called.

Not sure why mixing up both things makes the conversations tortured though? Can you clarify?

There are no comments on this comment yet.