Chapter 2Test-Driven Development Basics

You have a problem.

You are the team leader for a development team that is distributed across multiple locations. You’d like to be able to maintain a common list of tasks for the team. For each task, you’d like to maintain data such as the status of the task, which pair of developers the task is assigned to, and so on. You’d also like to be able to use the past rate of task completion to estimate the project’s completion date. For some reason none of the existing tools that do this are suitable (work with me here, folks) and so you’ve decided to roll your own. We’ll call it Gatherer.

As you sit down to start working on Gatherer, your impulse is going to be to start writing code immediately. ...

Get Rails 4 Test Prescriptions 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.