I’m starting Android development, but I want to work in a Test Driven development (TDD) way. I’ve looked at the Notepad Tutorial, but each step is too big, and it’s not at all TDD. This blog post describes the first step I took.
(more…)
Posts Tagged ‘hello world’
TDD FizzBuzz on the Android
May 23, 2010TDD Hello World
April 18, 2010The first program you’re s’posed to write in any new language is Hello World. If you’re doing Test Driven Development (TDD), what does Hello World look like?
The actual printing of the hello world text is the UI, and it’s hard to write unit tests for UIs. So we create a thin veneer of a UI, and put all logic into an engine layer. The engine layer is all unit-testable, and we design that Test First. then when we have the engine done, we slap a quick UI on it and our program’s done.
(more…)