Fixed #27008 -- Added --debug-mode option to DiscoverRunner.

This commit is contained in:
Chris Jerdonek 2016-08-10 10:46:54 -07:00 committed by Tim Graham
parent 9556005425
commit 5890b1613c
4 changed files with 23 additions and 3 deletions

View file

@ -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