Integration testing tip: Avoid creating many small tests
Integration testing tip: Avoid creating many small tests. Instead, create a few big tests.
Here’s why: There’s a lot of overhead in starting each integration test. So to build a fast integration test suite, favor “big” tests over “small” tests.
🧵👇
Example: Imagine I have a todo app. I don’t write separate tests for create, update, and delete. Instead, I create a single test that checks all three. I name the test “should support adding, editing, and deleting todos”.