﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27035	DiscoverRunner's setup_test_environment() hard-codes settings.DEBUG to False	Chris Jerdonek	Chris Jerdonek	"Currently, the `setup_test_environment()` method of Django's `DiscoverRunner` hard-codes setting `settings.DEBUG` to False. See [https://github.com/django/django/blob/a6baada7bdf0c2b14045ee86364f9401c7b91b7c/django/test/runner.py#L414 here] for a direct link to that code.

This is less convenient for subclassers that would like to provide the ability to selectively run certain tests with `DEBUG` set to True (e.g. see [https://code.djangoproject.com/ticket/27008 here] for a ticket to expose this as a command-line option).

This ticket is to make subclassing easier by adding a `debug_mode` instance attribute  to `DiscoverRunner` (the suffix ""mode"" is to better distinguish from the current `debug_sql` attribute). This would also make progress towards ticket #27008.
"	Cleanup/optimization	closed	Testing framework	dev	Normal	fixed			Accepted	1	0	0	0	0	0
