Hacker News new | ask | show | jobs
by cottsak 2931 days ago
I still don't get why we do this [mocking http endpoints].

Sure this makes the problem of mocking the server less painful. Well done. But I'd take completely integrated tests over these any day. Sure they're slower but that's more or less irrelevant with feature toggling, staged roll-out and continuous production monitoring.

It's totally possible to completely avoid mocking http endpoints thus making these tools completely obsolete.

2 comments

See my comment above. This is not a replacement for E2E testing.
It's not always easy. Especially not if your API is stateful.
Or if it's not your API. I've been looking for something like this to make mocking OAuth flow a lot easier.