mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #24118 -- Added --debug-sql option for tests.
Added a --debug-sql option for tests and runtests.py which outputs the SQL logger for failing tests. When combined with --verbosity=2, it also outputs the SQL for passing tests. Thanks to Berker, Tim, Markus, Shai, Josh and Anssi for review and discussion.
This commit is contained in:
@@ -625,8 +625,9 @@ Tests
|
||||
allows you to test that two JSON fragments are not equal.
|
||||
|
||||
* Added options to the :djadmin:`test` command to preserve the test database
|
||||
(:djadminopt:`--keepdb`) and to run the test cases in reverse order
|
||||
(:djadminopt:`--reverse`).
|
||||
(:djadminopt:`--keepdb`), to run the test cases in reverse order
|
||||
(:djadminopt:`--reverse`), and to enable SQL logging for failing tests
|
||||
(:djadminopt:`--debug-sql`).
|
||||
|
||||
* Added the :attr:`~django.test.Response.resolver_match` attribute to test
|
||||
client responses.
|
||||
|
||||
Reference in New Issue
Block a user