Writing Reliable E2E Tests: Defeating Flakiness
Identify the causes of flaky end-to-end tests and apply waiting, isolation, and retry strategies to keep them dependable.
The Flaky Test Problem
End-to-end tests touch the whole system, so they are the most prone to flakiness: passing one run and failing the next with no code change. Flaky tests erode trust in the whole suite.
Root Cause: Timing
The most common cause is timing. The test checks the UI or response before the system finished processing, due to network or async work.
All lessons in this course
- E2E vs. Integration Testing
- E2E Testing Tools Overview
- Test Data Management
- Writing Reliable E2E Tests: Defeating Flakiness