[Product-Developers] Re: Test setup in ZopeSkel

Daniel Nouri daniel.nouri at gmail.com
Wed Aug 20 11:03:01 UTC 2008


Maurits van Rees writes:

> I can imagine that the lines for loading the zcml *are* needed there
> because then you can ensure that the zcml gets loaded before calling
> installPackage.  Is this perhaps the only good reason for including
> those zcml lines in that specific case only?

Not going into the TANGLED MESS that Plone test setups have arrived to,
I believe that you'll need to load your ZCML if you depend on the
registrations therein in your test.  That is, AFAIK, noone's going to
implicitely load the site.zcml for you, which is a good thing.

And yes, being able to run the tests independently of the specific
buildout you're using it with is quite a feature.

Daniel

-- 
http://danielnouri.org





More information about the Product-Developers mailing list