This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Provide a unittest api for controlling verbosity in tests
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.6
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, martin.panter, michael.foord, r.david.murray, rbcollins, serhiy.storchaka
Priority: normal Keywords:

Created on 2015-06-01 20:28 by r.david.murray, last changed 2022-04-11 14:58 by admin.

Messages (4)
msg244613 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-06-01 20:28
The python regression test suite has a 'verbose' flag in its that some tests and test fixtures (asserts, helper methods, etc) use to control how much additional information they output.  unittest has a -v command line flag which controls the verbosity of the test runner (or whatever it is that prints out which tests have been run).  It would be very helpful if the verbosity level specified on the unittest command line were accessible to test code so that the verbosity level of the test output can also be affected from the unittest command line (I, for example, would use this to control printing logging output to the console while using tests to do debugging).  See also issue 24352.
msg244614 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-06-01 20:34
See also issue22197.
msg244615 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-06-01 20:38
Ah!  I *thought* an issue for this already existed, but I couldn't find it.  That one has two enhancements in it, maybe we can use this one to diverge the two.
msg248941 - (view) Author: Robert Collins (rbcollins) * (Python committer) Date: 2015-08-21 01:41
I've put a fairly comprehensive comment into issue22197.
Date User Action Args
2022-04-11 14:58:17adminsetgithub: 68543
2015-08-21 01:41:59rbcollinssetmessages: + msg248941
2015-06-02 19:26:21ned.deilysetnosy: + rbcollins, ezio.melotti, michael.foord
2015-06-02 00:55:59martin.pantersetnosy: + martin.panter
2015-06-01 20:38:22r.david.murraysetmessages: + msg244615
2015-06-01 20:34:18serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg244614
2015-06-01 20:28:25r.david.murraycreate