Does Python doctest remove the need for unit-tests?

Posted by daniel on Stack Overflow See other posts from Stack Overflow or by daniel
Published on 2010-04-15T01:57:50Z Indexed on 2010/04/15 2:03 UTC
Read the original article Hit count: 437

Filed under:
|
|

Hi all,

A fellow developer on a project I am on believes that doctests are as good as unit-tests, and that if a piece of code is doctested, it does not need to be unit-tested. I do not believe this to be the case. Can anyone provide some solid, ideally cited, examples either for or against the argument that doctests do not replace the need for unit-tests?

Thank you -Daniel

© Stack Overflow or respective owner

Related posts about python

Related posts about unit-test