About Tagging Tests

You can tag a test and execute only tagged tests using the following:

Test case:

from django.test import TestCase, tag

class LoginTestCase(TestCase):
    @tag("frontend", "authentication")
    def test_login(self):
        # …

Bash command:

(env)$ python manage.py test --tag=frontend

Tips and Tricks Programming Testing Django 4.2 Django 3.2 Django 2.2