Simple Doctests with PyCharm CE

Python Doctests with PyCharm are very easy to configure! This tutorial will show you – how easy you can configure and run your Doctests inside PyCharm CE. You can use the following pyton script.

Now create following Doctests for Script, Class, Method and Function.


pycharm doctest for script


pycharm doctest for class


pycharm doctest for method


pycharm doctest for function

Now you can run your different doctests and look on results.

pycharm doctest results example