[Zope-Coders] Re: autotest.py / ZConfig questions

Chris Withers chrisw at nipltd.com
Wed Oct 8 17:07:19 EDT 2003


Fred L. Drake, Jr. wrote:
> Chris Withers writes:
>  > How would I do this using a command line option and ZConfig's command-line 
>  > override support for autotest.py?
> 
> I've just added the support for that in the script; you can use:
> 
>     python autotest.py -X email/to=someone at example.com

Cool! Thanks...

>  > Does autotest.py limit the size of the email sent?
>  > If not, lemme know, and I'll make it do so :-)
> 
> It most certainly does not.  I'm not at all convinced having it
> throttle the email size is a good thing:  If there's an error, the
> output can actually help determine what went wrong.

Indeed, that's what my debug mode will be for.

BUT, if results are mailed to mailing lists, you may send unreadable messages or 
cause bounces (some MTA's and MUA's don't like biiiig messages) for some people.

So, when I did autotester.py, Shane suggested and I agreed and implemented that 
excessively long mails should be truncated and marked in the subject line as 
"too many errors"...

>  > > - allow you to override test.py parameters (so you can send -vv)
>  > 
>  > Again, how can I alter autotest.py to use ZConfig's command line override 
>  > support so that you can override the unit->test->script?
> 
> If you have only one <unit> with one <test>, use:
> 
>     python autotest.py -X unit/test/script='test.py -vv'
> 
> If you're using names for the units and the tests, the basic formula
> is:
> 
>     python autotest.py -X <unitname>/<testname>/script='test.py -vv'

Cool, thanks.. I'll try and feed this into the documentation once I've got my 
head around how it works :-)

Chris





More information about the Zope-Coders mailing list