[Zope3-dev] Obscenely slow single unit test

Barry Warsaw barry@zope.com
29 May 2003 10:27:34 -0400


On Thu, 2003-05-29 at 09:41, Steve Alexander wrote:
> Barry Warsaw wrote:

> >>Perhaps this test could be made more efficient, or trimmed in some way?
> > 
> > 
> > Or set to level 2?
> 
> What does that mean?

Zope3 (and Zope2 head) tests support levels, which is really just a way
to limit the test suite from running everything under the sun, e.g. ZEO
tests with several storages.

The default test level is 1, but see "python test.py --help" for
details.  You can specify a level for a test by setting the attribute
e.g. "level = 2" on either a TestCase or on a TestSuite.

See src/zodb/storages/tests/test_create.py and test_autopack.py for
examples.

-Barry