diff options
| author | François Freitag <mail@franek.fr> | 2019-03-07 21:58:30 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-04-30 16:20:51 +0200 |
| commit | 568eed9e79470b9ddf3e1b3bbad9123ada45eae8 (patch) | |
| tree | 6606bd5bad518d0aed7f892148f4aa8fbf4188cf /docs/ref/django-admin.txt | |
| parent | 719b7466203181066d9537d2e3bec687dffc9f41 (diff) | |
Fixed #30245 -- Added -k option to DiscoverRunner.
Diffstat (limited to 'docs/ref/django-admin.txt')
| -rw-r--r-- | docs/ref/django-admin.txt | 14 |
1 files changed, 13 insertions, 1 deletions
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 <topics-tagging-tests>`. 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<unittest.-k>`. Can be specified multiple times. + +.. admonition:: Python 3.7 and later + + This feature is only available for Python 3.7 and later. + + ``testserver`` -------------- |
