#24118: Add --debug-sql option to tests to print SQL queries on failure
---------------------------------------------+--------------------------
Reporter: mjtamlyn | Owner: mjtamlyn
Type: New feature | Status: new
Component: Testing framework | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 1 | Needs tests: 1
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------------+--------------------------
It's a common problem (*especially* when working on ORM code) to want to
print the complete sql queries run during a failing test, especially when
parts of the run sql are in the traceback...
I've created a POC which adds this feature by customising parts of
unittest. The `--debug-sql` option is provided to both `./runtests.py` and
`./manage.py test`.
--
Ticket URL: <https://code.djangoproject.com/ticket/24118>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.88cf57ec89d1f44d46f6efa0209a0f0e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.