Android Testing Best Practices
Enforces robust Android test architecture through clean constructor seams, synchronized coroutine schedulers, and outcome-based assertions.
The Android Testing skill provides high-impact architectural guidance for writing reliable, maintainable Android unit and integration tests. Distilled from comprehensive empirical testing across modern AI models, it focuses on the critical patterns that prevent test flakiness: establishing clean dependency seams using constructor parameters with production defaults, properly synchronizing coroutine test schedulers, and crafting assertions based on observable caller outcomes rather than internal implementation details. This skill is essential when refactoring Android components for testability or testing complex coroutine and Flow-based architectures.