Engineering Culture by InfoQ

Taming Flaky Tests: Trisha Gee on Developer Productivity and Testing Best Practices

14 snips
Apr 18, 2025
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Definition and Nature of Flaky Tests

  • Flaky tests are intermittent tests that sometimes pass and sometimes fail under the same conditions. - They commonly occur in integration and UI tests involving databases or external services.
ADVICE

Strategies to Manage Flaky Tests

  • Identify flaky tests so you can treat them differently or rerun them automatically. - Separate flaky tests from critical tests to avoid ignoring genuine failures and improve build reliability.
ADVICE

Reducing Test Flakiness Tactics

  • Adjust and be smart with timeouts in UI and service tests to reduce flakiness. - Optimize test setup by ensuring shared resources like databases start once to speed tests and reduce flaky results.
Get the Snipd Podcast app to discover more snips from this episode
Get the app