[Zope3-dev] Running doctests from the command line

Fred Drake fred at zope.com
Wed Mar 10 13:32:05 EST 2004


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.


  -Fred

-- 
Fred L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation




More information about the Zope3-dev mailing list