Display a list of all tests in a Django project

Is there an easy way to get a list of all the tests in a Django project without running the tests themselves? I was hoping for something like ./manage.py test --list .

+6
source share
1 answer

In my opinion, the more correct way is to use a real tool to run tests. For instance. in case of nose :

 ./manage.py test <app> --verbosity 2 --collect-only 

FYI, py.test also has a --collectonly to print tests instead of execution.

See also:

+12
source

Source: https://habr.com/ru/post/944171/


All Articles