Dropbox Jose Alcérreca Apr 25, 2025

How Dropbox leverages testing to maintain high level of trust at scale

Article Summary

Dropbox maintains 1B+ downloads with under 30 Android engineers. Their secret? A testing strategy that evolved from complete chaos to surgical precision.

Ryan Harter, Staff Engineer at Dropbox, shares how their testing pyramid completely inverted over the years. From slow, unreliable E2E tests to a balanced approach that actually catches bugs before users see them.

Key Takeaways

Critical Insight

Dropbox rebuilt their entire testing infrastructure to balance speed and reliability, ensuring a small team can maintain quality at massive scale.

The article reveals why they had to completely abandon their original E2E test suite and the specific coverage override process they use for Kotlin data classes.

About This Article

Problem

As Dropbox's app shifted to a modular architecture, their monolithic E2E test suite fell behind and became unreliable. Emulators gave slow feedback, so engineers started removing failing tests instead of fixing them.

Solution

Ryan Harter's team switched to Robolectric's AndroidX Test interoperability to run instrumentation tests as JVM-based unit tests instead. They set an 80% code coverage baseline and enforced it with JaCoCo tooling.

Impact

Over the past year, the team focused on making tests more reliable. They audited and removed flaky tests, then added Definition of Done checklists that require E2E test cases for every project. The test suite is now measurably healthier.