O'Reilly logo

Django 1.1 Testing and Debugging by Karen M. Tracey

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

Chapter 6. Django Debugging Overview

The best test suite in the world won't save you from having to debug problems. Tests simply report whether code is working correctly. When there is a problem in the code, found either via a failing test or some other means, debugging is necessary to figure out what exactly has gone wrong. A good test suite, run regularly, can certainly help in debugging. The specifics of the error message from the failure, the aggregate information provided by what tests pass versus what tests fail, in addition to the knowledge of what code change introduced the problem, can all provide important clues for debugging. Sometimes those clues are enough to figure out what has gone wrong and how to fix it, but often it is necessary ...

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