[Zope-dev] [Zope 2.12] how to test products/packages?
Hanno Schlichting
hannosch at hannosch.eu
Sun Mar 15 06:10:59 EDT 2009
Dieter Maurer wrote:
> The Zope 2.12 documention tells that the "test" command was removed
> from "zopectl".
>
> "test" was a convenient way to test products and packages in the
> context of the instance. How is this use case now supported?
The normal way to develop anything in the Zope world is based on
zc.buildout today. You can define a testrunner like this:
[test]
recipe = zc.recipe.testrunner
eggs = Zope2
and extend the eggs section with your eggs under development. Zope2
behaves the same as any other zope.* package now and does no longer
require any special test setup. The test command of zopectl depended on
too many assumptions based on environment variables and specific
directory layout, which are no longer true in the standard layout of eggs.
Hanno
More information about the Zope-Dev
mailing list