green -vv does not print test docstrings
See original GitHub issueI just installed green 2.16.1, and green -vv
doesn’t print test method docstrings. For instance, with test_foo.py from the readme, the output for green -vv
is this:
test_foo
TestAnswer
. test_expected
. test_type
TestSchool
. test_age
. test_food
If I set the verbosity level to 3 with green -vvv
, it does print the docstrings.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
python - How to print docstring for class attribute/element?
How can I print the docstring for Hotel which is a Class attribute/element? What I've tried. print(Holiday.Hotel.__doc__). returns ...
Read more >doctest – Testing through documentation - PyMOTW
doctest lets you test your code by running examples embedded in the documentation and verifying that they produce the expected results.
Read more >Source code for test_py_module.test
It's common for programmers to give a code example inside of their docstring:: from test_py_module import Foo myclass = Foo() myclass.dothismethod('with this ...
Read more >doctest — Test interactive Python examples — Python 3.11.1 ...
There's no output! That's normal, and it means all the examples worked. Pass -v to the script, and doctest prints a detailed log...
Read more >[LONG] docstring-driven testing
and the final line of output is "Test failed.". Run it with the -v switch instead: python M.py -v. and a detailed report...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed. Updated the screenshots as well, for good measure.
Correct, that is the design of the verbosity levels:
verbosity=1 (default)
verbosity=2 (
-vv
)verbosity=3 (
-vvv
)Perhaps we need to make that explicit in the help output?