#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: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by MarkusH):
* status: closed => new
* resolution: fixed =>
* severity: Normal => Release blocker
* stage: Ready for checkin => Accepted
Comment:
The output without the `--debug-sql` flag and with `--verbosity=3` is
broken here. The test name doesn't show in the output for `ERROR`. I
haven't checked `FAILURE` though.
{{{
test_squashmigrations_optimizes
(migrations.test_commands.SquashMigrationsTest) ... ok
test_squashmigrations_squashes
(migrations.test_commands.SquashMigrationsTest) ... ok
test_ticket_23799_squashmigrations_no_optimize
(migrations.test_commands.SquashMigrationsTest) ... ok
ERROR
ERROR
ERROR
ERROR
ERROR
test_create_model (migrations.test_multidb.MultiDBOperationTests) ... ok
test_create_model2 (migrations.test_multidb.MultiDBOperationTests) ... ok
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24118#comment:5>
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/066.6997c838eeb143734a6e2ad24af9474f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.