Add a django management command to list all tests in the project
Project description
Add a django management command to list all tests in the project
Quickstart
Install django-list-tests:
pip install django-list-tests
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'django_list_tests',
...
)
And run:
./manage.py list_tests <app_name>
You can use this command for fzf completion of tests:
# FZF ALL DAY ERRY DAY function tz() { # cache the test names to speed things up. you can go more complex with # watchman or whatever. if [[ ! -f '.test_names' ]]; then python $DJANGO_MANAGE_SCRIPT list_tests $DJANGO_ROOT_MODULE > ./.test_names fi TESTS=$( cat .test_names | fzf ) echo Runnning "$TESTS" python "$DJANGO_MANAGE_SCRIPT" "test" --keepdb "$TESTS" }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_list_tests-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62794b0c43dc262cae0bda032126925472e7b96734a8148c7f26872a5d25fef5 |
|
MD5 | 96118c476c15dcc35fa2aabff1fb805a |
|
BLAKE2b-256 | 8465d71aaba1c1e17b697ad0a824fdb9822e88b9942e01223c948c867bc45d10 |