Jason What a flaky test is a test that passes sometimes and fails sometimes even though no code has changed. Flaky tests are known to present themselves more in a continuous integration (CI) environment than in a local test environment. The fact that flaky tests don’t fail consistently adds to the difficulty of fixing them.

13m read timeFrom codewithjason.com
Post cover image
Table of contents
What a flaky test is and why they’re hard to fixThe overall approachBefore reproducing: determine whether it’s really a flaky testReproducing a flaky testDiagnosing a flaky testApplying the fix for a flaky testTakeaways

Sort: