Android Studio has a built-in feature that allows you to run tests with code coverage.
The test pyramid is a concept that any automated testing strategy should have more…
Is it possible to unit test logic that is tied to loading XML resources?
You are an Android developer. You care about quality. You consider code to be craft. You write…
Update (May 1, 2020): This method for mocking BuildConfig values is outdated and should no longer be used. See comments below for an alternate approach using Gradle build flavors.
Still confused about the difference between a unit test and and integration test?
Data binding on Android requires a slightly different approach to unit testing versus traditional MVP.
When I first started using Robolectric in late 2011 it was a literal godsend.
This amazing framework made it possible to unit test Android code in the local JVM using bytecode manipulation to replace Android classes with mock (shadow)…
These were the top 10 stories published by Android Testing; you can also dive into yearly archives: 2016, 2017, and 2018.