O'Reilly logo

Test-Driven Development with Django by Kevin Harvey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Starting a new app

This is an important milestone in our TDD journey. We are about to add an entire app to our project, not because we know we need it, but because we are at a point in our user story that demands it. If we'd started this project with what we thought we were going to need, we probably would have created this app and its models right out of the gate. But how would we have known which fields to add? Or what if we had to deal with bugs in the app itself? Or what if we'd added models just to find out later we didn't need them?

Instead, we let our tests drive our code where it needed to go, getting our second app and next models no earlier when we needed them, with tests against regression for the rest of the code. Without further ado, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required