[Zope3-dev] Running doctests from the command line
Shane Hathaway
shane at zope.com
Wed Mar 10 14:34:08 EST 2004
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.
Would it make a good PEP?
> The idea of making text files runnable feels really, really dirty, though.
I suppose that as long as the doctest script exists, this decision is
entirely up to the author of a test.
Shane
More information about the Zope3-dev
mailing list