#34657: Testing assertions `assertContains` and `assertInHTML` should output the
haystack on failure
-------------------------------------+-------------------------------------
     Reporter:  Thibaud Colas        |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Testing framework    |                  Version:
     Severity:  Normal               |               Resolution:
     Keywords:  HTML, assertions,    |             Triage Stage:  Accepted
  testing                            |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Sarah Boyce):

 I can see the value of this. The react testing library we use has a
 setting `DEBUG_PRINT_LIMIT` (https://testing-library.com/docs/dom-testing-
 library/api-debugging/#automatic-logging) with a default of 7000
 characters but you can increase it if you need to see more printed. I
 recommend that we have a similar setting 👍

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34657#comment:3>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070188c89b35a4-8c609ac0-407d-471d-b3f4-08dce6f6e6db-000000%40eu-central-1.amazonses.com.

Reply via email to