Lecture on Android unit testing and instrumentation testing, mDevCamp 2015. Overview of available libraries and frameworks, and their capabilities and drawbacks.
only Yes Database No Yes Yes File system access No Yes Yes Use external systems No Discouraged Yes Multiple threads No Yes Yes Sleep statements No Yes Yes System properties No Yes Yes Time limit (seconds) 60 300 900+
from Android APIs • separate business logic and UI • don’t write business logic into activities and fragments • try avoid static methods • use dependency injection
v1.0 • http://www.eclemma.org/jacoco/trunk/index.html • https://github.com/jacoco/jacoco • EMMA • Common Public License v1.0 • http://emma.sourceforge.net/