I have an app located at app/
and tests which reside at app/tests/tests.py
. How can I run those tests with django-admin.py
?
I tried django-admin.py test app
, django-admin.py test app.tests
and django-admin.py test app.tests.tests
but with no success.
I add that I am also adding the --settings
param to the above commands but cut it off for readability.
You need to use manage.py
instead on django-admin.py
. So run ./manage.py test app
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.