Chapter 6. Practicing Test-driven Development

This chapter introduces the Test-driven Development (TDD) discipline. We will start with TDD practices in the general sense, and later on move to the concepts and techniques more closely related to the Android platform.

This is a code-intensive chapter, so be prepared to type as you read, which would help you get the most out of the examples provided.

In this chapter, we will learn the following topics:

  • Introducing and explaining Test-driven Development
  • Analyzing its advantages
  • Introducing a real-life example
  • Understanding project requirements by writing tests
  • Evolving through the project by applying TDD
  • Getting an application that fully complies with the requirements

Getting started with TDD

Briefly, Test-driven ...

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.