diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 7 | ||||
| -rw-r--r-- | docs/releases/1.11.txt | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 3a0b05516e..3421478f33 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1254,6 +1254,13 @@ Sorts test cases in the opposite execution order. This may help in debugging the side effects of tests that aren't properly isolated. :ref:`Grouping by test class <order-of-tests>` is preserved when using this option. +.. django-admin-option:: --debug-mode + +.. versionadded:: 1.11 + +Sets the :setting:`DEBUG` setting to ``True`` prior to running tests. This may +help troubleshoot test failures. + .. django-admin-option:: --debug-sql, -d Enables :ref:`SQL logging <django-db-logger>` for failing tests. If diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index 46c780eda8..07126a88b5 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -269,9 +269,8 @@ Tests * Added :meth:`.DiscoverRunner.get_test_runner_kwargs` to allow customizing the keyword arguments passed to the test runner. -* Added the ``debug_mode`` keyword argument to - :class:`~django.test.runner.DiscoverRunner` to make it easier to customize - the :setting:`DEBUG` setting when running tests. +* Added the :option:`test --debug-mode` option to help troubleshoot test + test failures by setting the :setting:`DEBUG` setting to ``True``. URLs ~~~~ |
