Thumbtack Dec 2, 2019

Targeted Code Coverage Reports For Android Continuous Builds

Article Summary

Brian Terczynski from Thumbtack reveals how their Android team solved a critical problem: developers couldn't see which specific lines in their code changes lacked test coverage. The solution? Two custom reports that pinpoint exactly where tests are missing.

Standard code coverage tools show overall codebase coverage, but they don't highlight what matters most during code review: which new or changed lines need tests. Thumbtack's Android team built lightweight Python scripts (150 lines each) that integrate with their CI pipeline to generate targeted, actionable coverage reports for every pull request.

Key Takeaways

Critical Insight

Thumbtack's targeted coverage reports make it immediately obvious which lines need tests, leading to measurably more unit tests in code reviews and sustained coverage improvements.

The article includes specific examples of how reviewers now give more precise feedback and why the team chose to build custom scripts instead of using third-party tools.

Recent from Thumbtack

Related Articles