[Distutils] Distutils suggestion - test action

Andrew Kuchling akuchlin@mems-exchange.org
Wed Feb 28 07:50:01 2001


On Wed, Feb 28, 2001 at 10:08:13AM -0000, Moore, Paul wrote:
>test.py would be better. There's nothing stopping the developer having
>inline tests, it just means that test.py becomes a simple wrapper
>(execfile("module.py")).

Another approach would be to have a test/ subdirectory, and scan
through all the *.py files in it (all the test*.py files?  should it
recursively scan for test/ directories through a large project?).  Can
you run just a single test?  Another issue: how do tests signal their
success or failure to the 'test' command?  

Writing a Distutils command isn't too hard; read the class
docstring in distutils/cmd.py for info.

--amk