Compdigitec Labs

Archive for March, 2013

Techniques for testing Android fragments

Monday, March 4th, 2013

How to test a fragment-based Android application: Switching fragments directly from a sub-fragment (inside backstack) – This tests how well your fragment switching code deals with backstacks while switching fragments. Switching from another top level fragment – This tests your fragment switching code. Turning off the screen – This tests your onResume() and onResumeFragments() handlers […]