News for hackers. Stuff that matters.
Re:Mocking Is an Anti-Pattern by jph00 on Monday June 17, 2024 @03:08PM (#40709752)
I have a custom frontend for GitHub using the GitHub API (https://github.com/fastai/ghapi/) and don't use mocks - I test using the real API. I've had very occasional, but not enough to ever cause any real issues.

I don't find mocks for this kind of thing very helpful, because what you're really testing for are things like changes to how an API changes over time -- you need real API calls to see this.

There are no comments on this comment yet.