﻿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
27008	Add manage.py test --debug option	Chris Jerdonek	Chris Jerdonek	"This ticket is to allow `DEBUG` to be enabled when running tests (or when running a subset of tests if passing test labels on the command-line).

Enabling `DEBUG` is an easy way to help troubleshoot test failures in certain situations (e.g. if your code does extra checks or shows more info when `DEBUG` is turned on).

Currently, Django's `DiscoverRunner` hardcodes `settings.DEBUG = False` inside `setup_test_environment()` ([https://github.com/django/django/blob/5c63b3e5a797102d915e1683971517f747a28013/django/test/runner.py#L414 here] is a direct link to the code):

{{{#!python
def setup_test_environment(self, **kwargs):
    setup_test_environment()
    settings.DEBUG = False
    unittest.installHandler()
}}}

One option would be to add a test option like `--debug` to Django's test management command.
"	New feature	closed	Testing framework	1.10	Normal	fixed			Accepted	1	0	0	0	0	0
