Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22462

Doug Hellmann: doctest — Testing Through Documentation — PyMOTW 3

$
0
0
doctest tests source code by running examples embedded in the documentation and verifying that they produce the expected results. It works by parsing the help text to find examples, running them, then comparing the output text against the expected value. Many developers find doctest easier to use than unittest because, in its simplest form, there … Continue reading doctest — Testing Through Documentation — PyMOTW 3

Viewing all articles
Browse latest Browse all 22462

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>