|Version 1 (modified by mrts, 7 years ago) (diff)|
Running the test framework
When you submit a patch, you should always attach tests. Here are the guidelines for running the test framework.
Tests should be run with source:trunk/tests/runtests.py
To run tests, settings need to be provided.
Here's one possible way to do it using sqlite:
$ cd tests $ ../django/bin/django-admin.py startproject test_settings $ sed -i "s/DATABASE_ENGINE = ''/DATABASE_ENGINE = 'sqlite3'/;s/DATABASE_NAME = ''/DATABASE_NAME = 'test.db'/" test_settings/settings.py $ cd .. $ python tests/runtests.py --verbosity=2 --settings=test_settings.settings