[Python-Dev] Unit testing (again)

Tim Peters tim.one@home.com
Wed, 14 Feb 2001 01:52:37 -0500


[Skip]
> I must admit to being unfamiliar with all the options available.  How
> well does doctest work if the output of an example or test doesn't
> lend itself to execution at an interactive prompt?

If an indication of success/failure can't be produced on stdout, doctest is
useless.  OTOH, if you have any automatable way whatsoever to test a thing,
I'm betting you could dream up a way to print
    yes
or
    no
to stdout accordingly.  If not, you probably need to work on something other
than your testing strategy first <wink>.