Running tests

tddspry provides special command-line utility for simplifying run all tests in Django project or application..

django-nosetests.py utility

This utility is wrapper to nosetests command that only set DJANGO_SETTINGS_MODULE environment var by --with-django-settings option and TWILL_ERROR_DIR environment var by --with-error-dir option.

And to test your project, you need execute:

django-nosetests.py

from your project’s root or parent directory.

Note: If you wasn’t installed tddspry to your system and using it from PYTHONPATH just link django-nosetests.py something to your PATH, for example:

ln -s /path/to/tddspry/bin/django-nosetests.py ~/bin/django-nosetests.py

Table Of Contents

Previous topic

Writing tests

Next topic

Changes in tddspry

This Page