Effective Strategies for Testing and Releasing Server Side Changes
summary
Advocates using the Swift compiler to catch bugs early, replacing Any dictionaries with protocols and enums to make config and refactors safe, and validating out-of-band JSON with schema checks at startup so bad configs fail fast. Recommends Swift macros to generate mocks, verifying call order when it matters and avoiding order checks for parallel calls. Uses localstack for AWS to run integration tests locally, runs linters AI reviewers unit and integration tests in CI, and rolls out with blue-green deployment and feature gates plus automatic rollback.
AI-written summary · about
chapters (10)
- 0:00The importance of testing
- 0:49Compiler-driven development
- 2:44Avoiding risky code patterns
- 4:38Handling dynamic configuration
- 7:11Testing with protocols
- 8:31Using Swift macros for mocks
- 9:38Verifying mock interactions
- 10:50Effective unit test design
- 11:41Integration and deployment
- 15:36Conclusion
related talks
33mWhat people get wrong about testing and how can you leverage tests to develop a lot faster!
25mAdopting a Test driven Mindset in the Workplace
01h 03mSwift Tools for Software Crafting 2024
34mScripting in Swift For a Testable Build
30mUnlocking the Power of Swift Testing: Modern Approaches to Testing iOS Apps
16mShift Left, Not Off a Cliff: Why Your Testing Strategy Is Breaking Developers
26mTesting the Tricky Stuff
52mLayers of testing in iOS applications
