Creating a sample project – the temperature converter

You might have guessed it from some of the code snippets so far, that our TDD examples will revolve around an extremely simple Android sample project. It doesn't try to show all the fancy Android features, but focuses on testing and gradually building the application from the test, applying the concepts learned before.

Let's pretend that we have received a list of requirements to develop an Android temperature converter application. Though oversimplified, we will be following the steps you normally would, to develop such an application. However, in this case we will introduce the Test-driven Development techniques in the process.

List of requirements

Usually (let's be honest), the list of requirements ...

Get Learning Android Application Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.