DEV Community

Tolgahan ÜZÜN
Tolgahan ÜZÜN

Posted on

Django Test Plus Extensions

https://github.com/tolgahanuzun/test_plus

Django Test Plus Extension is an advanced tool for Django tests. Motivation; This is a detailed analysis of the atomic parts of Django tests. In short, each running test understands how long it runs.

The total time information of Django tests is returned. There are more than a thousand test cases in the company I work for. I wanted to analyze long tests and correct mistakes.I saw such a shortcoming, I aimed to write a package.

Support and Update

Inspired by the Django Extensions package. It is free and open to improvement. I can improve if you tell me your needs. You can also support the development.

Installing

pip install test_plus

and

Add it to INSTALLED_APPS in your projects settings.py file:

INSTALLED_APPS = (
    ...
    'test_plus',
    ...
)

Using and Result

It takes the same parameter in Django tests.

python manage.py test_plus

or

python manage.py test_plus app_name.test.test_file -k -v 2

Top comments (0)