Tyler Schultz's blog



Tyler SchultzTyler Schultz
Android: Unit testing custom views
edit Posted by Tyler Schultz on Saturday June 11, 2011 at 11:53AM

Android Activity classes can become gigantic and unwieldy if you're not careful. Testing complex Activities requires complex setup. To reduce that pain we try our best to keep the Activity lean. This means getting logic out of the Activity. One technique we use is to create custom views that we can test in isolation.