Skip to main content

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"
}

Metadata

Release files for django-list-tests 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-list-tests 0.1.2
File Size Uploaded
django-list-tests-0.1.2.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-list-tests 0.1.2
File Interpreter ABI Platform
django_list_tests-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 6.8 kB

Release files / django-list-tests-0.1.2.tar.gz

Download URL django-list-tests-0.1.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
33e7d7af9388af7e7c4ba06b9368f8eb0f73cbd94a2e11b7c5135a5d6cf85e82
BLAKE2b-256 checksum
How to use checksums
eb608661216813e0411335f4d315ed9a1cb018774b72e1deac9d19e3074fa03c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release files / django_list_tests-0.1.2-py2.py3-none-any.whl

Download URL django_list_tests-0.1.2-py2.py3-none-any.whl
Size 3.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
25bd3c0c7f4e0dfb40f913b841416a9ea1ef1fa5c021ca4c7643fbbf2b78cf7a
BLAKE2b-256 checksum
How to use checksums
cd1e19258b97672757cad3a8146e0967ec44e7f9405fd8fa5b933b2c54c66d3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page