AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Control Flakiness in Your Test Suite
The idea there is that instead of interacting with some unpredictable third party service, I'll actually have a mock of that third party service. And in my experience, that often helps me to control flakiness. Of course at the expense of perhaps limiting the realism of the test cases that I'm running. So if we can't have mocks, but we recognize there's flakiness perhaps because of our dependence on some third party API, then in that situation, I think we should do precisely what you suggested a moment ago - run those test cases infrequently.