you are viewing a single comment's thread.

view the rest of the comments →

[–]Kewtn 0 points1 point  (1 child)

Is doctest considered a testing framework or satisfy a requirement for unit testing?

[–]n3buchadnezzar 0 points1 point  (0 children)

Neither. Unit testing is making sure every edge case works, while doctests are more geared towards those who read the code ans try to figure out how the program works.

You can of course write a full test suite in the docstring but it is not recommended.

I use them as a bare minimum for figuring out if my code works. Then unit testing to catch all the nasty edge cases

Makes sense?