#29105: Make Default Test Output More Verbose (And Formatted Prettier)
------------------------------------------------+------------------------
               Reporter:  Rich Jones            |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Testing framework     |        Version:  2.0
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  1
                  UI/UX:  1                     |
------------------------------------------------+------------------------
 ''This ticket is part of the Django Test Output Beautification initiative:
 https://code.djangoproject.com/ticket/29101''

 The current default test output provides no information about what test is
 currently running. This makes the test output pretty useless if you're
 actually trying to determine which test is taking so long, or failing, or
 misbehaving, etc.

 The current test output is a wall of unformatted text - bleh! With
 --verbosity=3, it includes information about which test is running, and
 the description of the test (yay), but the formatting is still horrible.

 {{{
 test_bad_file_grouping
 
(data_refinery_workers.downloaders.test_transcriptome_index.DownloadTranscriptomeIndexTestCase)
 Raises exception if both files don't have the same download_url. ...
 2018-02-02 15:31:50,587 local/MainProcess
 data_refinery_workers.downloaders.transcriptome_index ERROR
 [downloader_job: 12]: A Batch's file doesn't have the same download URL as
 the other batch's file.
 ok
 test_good_file_grouping
 
(data_refinery_workers.downloaders.test_transcriptome_index.DownloadTranscriptomeIndexTestCase)
 Raises exception if both files don't have the same download_url. ...
 ok
 }}}

 We should make the _default_ test output to be something like:

 {{{

 ========================
 Testing 'test_bad_file_grouping'
 
(data_refinery_workers.downloaders.test_transcriptome_index.DownloadTranscriptomeIndexTestCase)
 _Raises exception if both files don't have the same download_url._
 -----------------------------------------------------
 ...
 ERROR [downloader_job: 12]: A Batch's file doesn't have the same download
 URL as the other batch's file.
 Ok!

 ========================
 Testing 'test_good_file_grouping'
 
(data_refinery_workers.downloaders.test_transcriptome_index.DownloadTranscriptomeIndexTestCase)
 _Makes sure that proper file group runs the pipeline._
 -----------------------------------------------------
 ...
 Ok!

 }}}

 Where test title, test description and Ok/Failure are also colorized
 appropriately.

 I'm not totally certain what else the 'verbosity' argument is controlling,
 (perhaps log level?), but either way I think the way to improve this
 experience is clear: Move to a more structured, human-friendly text
 formatting and away from barfing out a wall of unformatted text.

 Related tickets:
 https://code.djangoproject.com/ticket/29101
 https://code.djangoproject.com/ticket/22449

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29105>
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.0541a72d545f39e11dbfc4a730f67104%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to