From 568eed9e79470b9ddf3e1b3bbad9123ada45eae8 Mon Sep 17 00:00:00 2001 From: François Freitag Date: Thu, 7 Mar 2019 21:58:30 +0100 Subject: Fixed #30245 -- Added -k option to DiscoverRunner. --- docs/ref/django-admin.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'docs/ref') diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index a269f6f8c6..4c7396f929 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1360,7 +1360,7 @@ The ``test`` command receives options on behalf of the specified :option:`--testrunner`. These are the options of the default test runner: :class:`~django.test.runner.DiscoverRunner`. -.. django-admin-option:: --keepdb, -k +.. django-admin-option:: --keepdb Preserves the test database between test runs. This has the advantage of skipping both the create and destroy actions which can greatly decrease the @@ -1438,6 +1438,18 @@ May be specified multiple times and combined with :option:`test --exclude-tag`. Excludes tests :ref:`marked with the specified tags `. May be specified multiple times and combined with :option:`test --tag`. +.. django-admin-option:: -k TEST_NAME_PATTERNS + +.. versionadded:: 3.0 + +Runs test methods and classes matching test name patterns, in the same way as +:option:`unittest's -k option`. Can be specified multiple times. + +.. admonition:: Python 3.7 and later + + This feature is only available for Python 3.7 and later. + + ``testserver`` -------------- -- cgit v1.3