VBM on Android - Activity Testing

We're continuing our work towards understanding how we can have near 100% test coverage. I get pretty annoyed at the Activity class sitting there at super low percentages and feeling like there's nothing I should do. Not that I feel there's nothing I can…

VBM on Android - The Mediator

There's actually a reason I put VBM in the title of this series. And aside from some lightweight organization of the UI layer, a major aspect to the VBM structure is utilizing the mediator as the layer to encapsulate any logic branching code and protect the rest of…

Testing Android - Dialog Testing

When doing TDD, or testing in general, on Android there's a lot of time you'll encounter an exception like the following java.lang.RuntimeException: Method {{METHOD}} in {{FQD.CLASS}} not mocked. See http://g.co/androidstudio/not-mocked for details. This is just saying that a call…

VBM on Android - Top Stories Full Data

I've thought a bit about my TDD limitations on Android and my discovery of the GoLang-y nature of interfaces. For the TopStoriesAdapter.ViewHolder to be tested; we can create a wrapper for other controls... Now I understand why Android didn't do it originally; performance; TDD was…

VBM on Android - Top Stories Item Layout

Making the UI This is what we're starting with: and we'll be looking to improve this and effectively display the information from HackerNews. Let's start this with saying that UI; it's not my thing. I do my creativity in code. I don&…

TDD against Android UI Elements

I've been working very hard to not accept excuses for not having tests on something. I want to be able to TDD as close to 100% of an Android app as possible. I currently have a few areas I need to develop techniques to enable TDDing. One of…

VBM on Android - Top Stories Screen

OK - Looks like we've gotten to the point where building out a UI is gonna be a good next step. We need to know what we want to see to know what app innards to build up. Sure, sure "Top Stories"; but honestly, I have…

Android App in VSTS with Hosted Agent

I've looked into the issue of building without a Custom Build Agent for an android app. I got it working. I want to say that early on I tried something almost identical to this; but it didn't work. Why it hated running batch commands and not…