We all consume APIs, but even the best among us overlook common risks like connection timeouts, token expiration, and API contract changes, to name a few potential gotchas. How do you tackle this early? Unit tests won't help here. Luckily, it's 2024, and there are modern workflow and testing techniques to consider. We'll delve into network mocks that can easily generate chaos, best practices for generating API client types, smart OpenAPI-based mocks that reveal changes automatically, provider-driven contracts, and more. Don't like theoretical talks? Great, because 99% of our time will get spent with real-world coding scenarios. The content is based on my testing best practices guide online (5 million visitors)
Yoni Goldberg is an independent consultant who works with 500 fortune corporates and garage startups on polishing their applications. At the end of the day, he packs all the lessons learned and does what he likes more than anything else: write blog posts and talks. His articles were visited by more than 7 million people over the past 5 years. These visitors were also kind enough to leave 110,000 ⭐️ stars in his GitHub repositories