Pycharm is great for running all of the doctests per (script / function / class / folder*) but the folder option runs all doctests which are immediately within that folder (not within folders of that folder).
Is there a way to recursively run through some top level folder and run all doctests found?
This can be done from PyCharm with the help of pytest
:
pytest
by running pip install -U pytest
--doctest-modules
to the Additional Arguments fieldNow running the newly created configuration will discover and run all doctests, even those in subdirectories.
See PyCharm's documentation for more configuration options.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With