Chapter 5. Filling in the Blanks: Integrating Django and Other Test Tools
Previous chapters have discussed the built-in application test support that comes with Django 1.1. We first learned how to use doctests to test the building blocks of our application, and then covered the basics of unit tests. In addition, we saw how functions provided by django.test.TestCase
and django.test.Client
aid in testing Django applications. Through examples, we learned how to use these functions to test more complete pieces of our application, such as the contents of pages it serves and its form handling behavior.
Django alone, however, does not provide everything one might want for test support. Django is, after all, a web application framework, not a test framework. It doesn't, for example, provide any test coverage information, which is essential for developing comprehensive test suites, nor does it provide any support for testing client-side behavior, since Django is purely a server-side framework. Other...