[Zope3-dev] testrunner layers

Florent Guillaume fg at nuxeo.com
Wed Dec 21 10:07:43 EST 2005


On 21 Dec 2005, at 15:44, Gary Poster wrote:
> On Dec 21, 2005, at 9:25 AM, Florent Guillaume wrote:
>
>> I didn't find the info I was looking for in the unit tests and  
>> docs for the testrunner:
>
> Jim's the one to answer most of this, but FWIW everything (the  
> little) I need is demonstrated (if not explained) in my recent  
> testbrowser email.
>
> http://mail.zope.org/pipermail/zope3-dev/2005-December/017149.html
>
> Layer code is near the very bottom only, and has nothing directly  
> to do with testbrowser.
>
> The zcml file that the layer uses ('ftesting.zcml' in the example)  
> is effectively the site.zcml for the layer.
>
> The name that you give the layer is what you slam on to the test  
> suite object (see example).
>
> The --layer thing is regex based, I believe, although all I've not  
> needed anything other than substring matching, so no regex syntax.

Thanks.

I'd missed zope.app.teseting.functional and its ZCMLLayer and  
defineLayer. I think they will come in handy.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com




More information about the Zope3-dev mailing list