Make UITest great again, using localhost
summary
Claim: end-to-end XCUITests get comprehensive coverage by replacing external services with a controllable in‑memory localhost server that runs in the test runner. Implementation: start a server on a random port so tests run in parallel, patch Info.plist with allowLocalNetworking for HTTP, swap API domains to localhost, and serve JSON files or recorded responses. Verifications include ordered request assertions (paths, HTTP bodies, curl strings) and GA event capture; demo tests pass and a suite is built in weeks.
AI-written summary · about
chapters (9)
- 0:00Start
- 3:43Test Pyramid
- 4:35Integration Tests
- 6:46Setup Localhost - Localhost
- 8:25Setup Localhost - API
- 10:59Asserting Localhost Requests
- 27:34Closing
- 29:18What's Next
- 29:37References








