[Zope3-dev] Running doctests from the command line

Phillip J. Eby pje at telecommunity.com
Wed Mar 10 13:54:07 EST 2004


At 01:32 PM 3/10/04 -0500, Fred Drake wrote:
>On Wednesday 10 March 2004 11:52 am, Shane Hathaway wrote:
>  > Hey, that's an idea: add '#!/usr/bin/doctest' to the top (Or some
>  > variation thereof) and 'chmod a+x README.txt'.  That would be cool.  To
>  > run the tests, type './README.txt'.
>
>I like the idea of a doctest (not doctest.py!) script that gets installed in
>$exec_prefix/bin/ that can be used to run doctest over text files as well as
>Python code.
>
>The idea of making text files runnable feels really, really dirty, though.

Hey, I like to make ZConfig files executable.  How dirty is that?  :)




More information about the Zope3-dev mailing list