[z3-five] Re: ~ Zope testing frameworks
Tres Seaver
tseaver at zope.com
Fri Sep 10 19:24:20 MEST 2004
Martijn Faassen wrote:
> Tres Seaver, meet Stefan Holek, and vice versa, if you haven't already.
> Stefan Holek wrote ZopeTestCase, to be found here:
>
> http://zope.org/Members/shh/ZopeTestCase
>
> Tres doesn't need any introduction, I hope. :)
>
> Tres is used to another testing framework, also apparently in Zope 2,
> started like this:
>
> bin/zopectl run Products/Five/tests/test_bridge.py
I am hopeful of extending zopectl to add syntax to do the following:
$ bin/zopectl test Products.Five # other test.py args, too
which would use the 'test.py' framework, but in the context of the
configuration and products of the instance.
> Tres is contributing code to Five, yay! However, he got pretty confused
> by the way we use ZopeTestCase in Five. He couldn't get the tests to
> run, and furthermore once he used runalltests.py, he reported troubles
> running the tests in a ZEO environment. I was at a loss, as I'm used to
> ZopeTestCase.
I never set up an application server instance without ZEO, even in a
sandbox. I think ZTC is doing something clever about the database
(setting up a new DemoStorage over the "real" storage?) which wasn't
compatible with ZEO.
> You guys will both be at the Plone conference (me too). It might be a
> good idea for you two to have a chat about test frameworks in Zope, and
> what can be done to get Tres less confused about writing Five tests, and
> me less confused about what Tres is doing. I just want everybody to be
> able to happily contribute code (and thus tests) to Five.
+1 for that. I would enjoy chatting about how to get the benefits of
both ZTC and the 'test.py' framework.
> Tres, by the way; the tests you added to Five also run without failures
> using 'runalltests.py'. Thanks!
You're welcome! I am very pleased with where Five is going.
Tres.
--
===============================================================
Tres Seaver tseaver at zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
More information about the z3-five
mailing list