Running the test framework

When you submit a patch, you should always attach tests. Here are the guidelines for running the test framework to, ahem, test your tests.

Tests should be run with [source:django/trunk/tests/ django/trunk/tests/]

See also TestingDjango (I wasn't aware it existed before I started this).


To run tests, settings need to be provided.

Up to date official docs can be found here:

Running only specific tests

This example runs only form tests:

$ python --verbosity=2 --settings=test_settings.settings forms

With cunning shell trickery, it's e.g. possible to only run admin tests:

./ --settings=test_settings.settings `(cd regressiontests/; echo admin_*; )`
Last modified 6 years ago Last modified on 07/23/2010 04:57:58 AM

Attachments (2)

Download all attachments as: .zip

Back to Top