Tooling for backend integration and E2E testing
Posted by redpandapro@reddit | ExperiencedDevs | View on Reddit | 2 comments
I've been working on a video system that works on live streams. The backend codebase is quite large. It has all the unit tests. Yet, for most features I still end up doing a lot of integration testing manually. For example, setting it up, pointing it to some fake live stream, seeing what happens when it goes down, etc. Making some config changes. Then restarting and see what happens when the stream changes halfway through. Seeing what happens when the database gets corrupted, etc. The kind of stuff that is very hard to capture in unit tests basically. This is taking a lot of time, and requires manual set up every time. I think for most web developers integration testing has some nice tooling. But for me it feels like I'm in the stone age still. Am I the only one experiencing this? Are there any tools around to help with this? Any thoughts about this would be greatly appreciated, as well as any tips.
darkhorsehance@reddit
I do the same thing for one of the major sports leagues and we use https://playwright.dev/
casualfinderbot@reddit
Integration tests just mean testing bigger pieces of your code and using less mocking. It uses the same tooling as unit tests (at least in typescript) plus a couple of add ons
One nice thing to do is an in memory database and swap that out for your real database in tests for example