in Python by
Q:
What are  Pros and Cons of Doctest?

1 Answer

0 votes
by
Pros

doctest is very simple to use and doesn't require any installation.

It ensures code documentation, containing interactive examples are up to date.

Cons

doctest doesn't have a proper API for testing.

doctests are static in nature and hence cannot be parameterized.

doctest doesn't support features like test discovery, test fixtures and test runner. Hence it cannot be used for testing a large project.

Related questions

0 votes
asked Jul 10, 2020 in Python by GeorgeBell
0 votes
asked Nov 19, 2019 in Robotic Process Automation by rajeshsharma
...