You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unittest: no way to control verbosity of doctests from cmd #55598
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2014-07-02.22:41:57.654>created_at=<Date2011-03-03.19:57:24.734>labels= ['type-bug', 'tests', 'docs']
title='unittest: no way to control verbosity of doctests from cmd'updated_at=<Date2014-07-02.22:41:57.654>user='https://bugs.python.org/techtonik'
I can't find a way to execute DocTests contained in a separate README.txt file using unittest.main() function. That doesn't allow to control verbosity for debugging.
I could find a way to subclass TestLoader.loadTestsFromNames() by looking at the source code of undocumented TestProgram. I'd like to see this use case at least covered by documentation if not properly developed for stdlib of Python4.
If the verbosity parameter isn't sufficient (which needs documenting but that is bpo-11385) then it would need to be a feature request on DocFileSuite (part of doctest).
techtonik commented on Mar 6, 2011
techtonikmannequin
MannequinAuthor
More actions
I need to execute doctests along with unit tests from test suite contained in tests.py file and control verbosity parameter in case something goes wrong.
Anatoly, does the verbosity parameter work for you? If not then any feature request / change needs to be for the DocFileSuite as the information is coming from there rather than unittest itself.
Activity
techtonik commentedon Mar 3, 2011
I can't find a way to execute DocTests contained in a separate README.txt file using unittest.main() function. That doesn't allow to control verbosity for debugging.
I am doing it this way in the tests.py
I could find a way to subclass TestLoader.loadTestsFromNames() by looking at the source code of undocumented TestProgram. I'd like to see this use case at least covered by documentation if not properly developed for stdlib of Python4.
terryjreedy commentedon Mar 5, 2011
The undocumented verbosity parameter?
voidspace commentedon Mar 5, 2011
If the verbosity parameter isn't sufficient (which needs documenting but that is bpo-11385) then it would need to be a feature request on DocFileSuite (part of doctest).
techtonik commentedon Mar 6, 2011
I need to execute doctests along with unit tests from test suite contained in tests.py file and control verbosity parameter in case something goes wrong.
voidspace commentedon Mar 6, 2011
Anatoly, does the verbosity parameter work for you? If not then any feature request / change needs to be for the DocFileSuite as the information is coming from there rather than unittest itself.