2 ms·
I wish more articles talked about the usefulness of integration tests over unit tests. Personally, I feel that unit tests are overrated and rarely give the requ
by supriyo-biswas 2y ago
I wish more articles talked about the usefulness of integration tests over unit tests. Personally, I feel that unit tests are overrated and rarely give the required confidence to inform the team whether something is ship ready, whereas integration tests on the common workflows means that even when a bug is introduced, very few users are affected.
- sethammons 2y agoSo much this. I have been at a few shops now that feel their integration tests are ok and their unit tests are proving >90% coverage and yet they break the login or auth flow weekly. An absolute aversion to e2e tests. As soon as I can make a test log in and create and read one record, and bake that into the release process (preferably gating merge to main and after deployment artifact generation) then the site no longer breaks every week. Customer pain and hours of dev work saved.
- tracerbulletx 2y agoIt seems from my experience that when you're working on a core library or tool where the API is the product and it's going to be widely used by lots of other teams, or even companies in the case of open source, then unit tests are very important. If you're on a product team they probably are a waste of time.