Wealthfront Aug 19, 2024

Speed Up Your Android Tests: Gradle Plugin for Unit Test Filtering

Article Summary

Wealthfront's Android team had a problem: their test suite was slowing down every PR merge. Running all tests on every change wasn't scaling.

The team built a custom Gradle plugin that intelligently filters unit tests based on changed files in each pull request. By leveraging their modular architecture and git diffs, they only run tests for affected modules instead of the entire suite.

Key Takeaways

Critical Insight

By running only relevant tests on PRs while keeping full coverage before releases, Wealthfront cut their unit test time in half without sacrificing quality.

The team applied the same approach to end-to-end tests with even more interesting challenges (coming in their next post).

Recent from Wealthfront

Related Articles