Sometimes it’s better for tests to hit the real API ↦
When I first discovered that nine of my tests were failing due to a broken external API, my first thought was, “Man, maybe I should mock out those API calls so my tests don’t fail when the API breaks.” But then I thought about it a little harder…
This is why libraries such as VCR are so awesome.
Discussion
Sign in or Join to comment or subscribe