[Product-Developers] testing: speed of setting up PloneFixture

Asko Soukka asko.soukka at iki.fi
Thu Nov 10 19:25:58 UTC 2011


Karl Johan Kleist wrote:
> This Finnish invention seems very promising:
> http://opensourcehacker.com/2011/11/08/sauna-reload-the-most-awesomely-named-python-package-ever/

Hi,

I welcome all ideas, how sauna.reload's forkloop could be adapted into 
zope.testrunner & plone.app.testing.

To make the forkloop-approach to work, testrunner-process should be 
forked right after the base Plone-fixture has been set up, but before 
any tests or testable code has been loaded into memory.

That may not be trivial, because fixtures are built up for tests (as 
their layers) only after the tests (and usually also the testable code) 
have already been loaded. Yet, the idea of forkloop doesn't fit well for 
looping more than one test at time.

-Asko


More information about the Product-Developers mailing list