Answer the question
In order to leave comments, you need to log in
How to tell Django to run tests in subdirectories?
Hello!
The project has the following structure
- project/
- ...
- src/
- apps/
- app/
- tests/
- __init__.py
- test_views.py
- static/
- templates/
__init__.py
written from .test_views import *
./manage.py test
returns Ran 0 tests in 0.000s
. ./manage.py test app
everything is ok. Answer the question
In order to leave comments, you need to log in
You can use django_nose then you can run tests by directory or even individual classes and methods.
I switched to pytest a long time ago (+django-pytest), run like this
py.test myapp/zzz/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question