[TUT] Testing Android Things – Unit & Vendor tests

This tutorial will show you how you can architect your Android Things applications to make testing much easier. This involves two types of testing: unit and vendor testing. Google has just announced the amazing Android…

Read more of [TUT] Testing Android Things – Unit & Vendor tests

[TUT] How to test time and control System.currentTimeMillis

This post explains how to control time and specifically control System.currentTimeMillis. To make your code more flexible, maintainable and in the end testable! Showing an example application that uses time to define different behaviour for…

Read more of [TUT] How to test time and control System.currentTimeMillis

[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