Airbnb Mar 24, 2020

Better Android Testing at Airbnb (Part 4)

Article Summary

Airbnb's Android tests were failing randomly. The culprit? Everything from cached drawables to delayed runnables creating unpredictable test behavior.

In Part 6 of their testing series, Airbnb's Eli Hart reveals the hidden sources of test flakiness that plague screenshot and interaction testing. With tests running in unpredictable order via Flank, even small state leaks compound into major reliability issues.

Key Takeaways

Critical Insight

Airbnb achieved reliable Android testing by systematically eliminating flakiness sources at the framework level, from shared preferences to WebView mocking.

The team's approach to handling out-of-memory exceptions during 40,000 pixel screenshots reveals clever bitmap management strategies.

Recent from Airbnb

Related Articles