Airbnb Mar 3, 2020

Better Android Testing at Airbnb (Part 1)

Article Summary

Airbnb built a system that automatically tests every click in their Android app without writing a single Espresso test. Here's how they turned interaction testing from tedious to automatic.

Part 3 of Airbnb's testing series dives into their automated interaction testing framework. Instead of manually writing brittle Espresso tests for click handlers, they programmatically click every view, capture all resulting actions, and generate JSON reports that get diffed like screenshots.

Key Takeaways

Critical Insight

Airbnb's automated interaction testing generates comprehensive integration tests with zero manual Espresso code, catching regressions in click handlers that screenshot tests miss.

The framework even uses reflection to stabilize Android resource IDs across builds, solving a consistency problem that plagued their early attempts.

Recent from Airbnb

Related Articles