[TUT] Mocking shared preferences to test in isolation

Below is an excerpt from my book “Learning Android Application Testing” that explains how you can write tests that interact with the Android system using files, databases or shared preferences without corrupting or being affected…

Read more of [TUT] Mocking shared preferences to test in isolation

[TUT] Migrating to AdMob in Google Play Services from AdMob SDK jar

Google have announced AdMob will now be available from with the Google Play Services library. The issue being they are stopping delivering ads to the AdMob sdk jar from August 2014. I describe here some…

Read more of [TUT] Migrating to AdMob in Google Play Services from AdMob SDK jar

[TUT] Android Gradle App with Espresso Instrumentation tests

This tutorial will show you the skeleton of an Android application that uses the Gradle build system and runs Espresso Instrumentation tests on Android classes. This follows on from my tutorials about Robolectric JUnit tests…

Read more of [TUT] Android Gradle App with Espresso Instrumentation tests