(Side-Quest)
đź§Ş What are End-to-End Tests?
These are tests that check our system against other services, like remote APIs. They hit the real services that our app uses.
For example, we might make a real network request to that Weather API using a real instance of Foundation.URLSession. (7/11)
đź§Ş What are End-to-End Tests?
These are tests that check our system against other services, like remote APIs. They hit the real services that our app uses.
For example, we might make a real network request to that Weather API using a real instance of Foundation.URLSession. (7/11)
Comments
⏱️ Response time tests to ensure the API responds within an acceptable time frame.
❌ Error handling tests to verify that the app properly handles API errors (e.g., 4xx, 5xx responses). (8/11)
🔒 Authentication/Authorization tests to ensure the app properly handles authentication failures or unauthorized access. (9/11)
⚠️ Edge case tests to test the API with unusual or edge-case input data to see how the app handles it. (10/11)
And remember, tests aren't just for you. They are for your coworkers, and the person that comes along to fill your shoes once you've moved on to your next role.
(11/11)