Question: For those writing automated integration tests/end-to-end tests,...


Question: For those writing automated integration tests/end-to-end tests, how do you handle data?

Options:
1. Call a real DB
2. Call a mock API
3. Other ideas?

If 1, how do you avoid brittle tests? Do you create the data before you assert it exists?

I typically do 2 today.

View original on X