[z3-five] Re: ~ Zope testing frameworks

Paul Everitt paul at zope-europe.org
Sat Sep 11 10:39:10 MEST 2004


Tres Seaver wrote:
> 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.

Paul the friendly conference pimp notes that Stefan is giving a tutorial 
on testing:

   http://plone.org/events/conferences/2/program

...Tuesday afternoon.  Here's the info:

"""
PloneTestCase - The Plone 2 Testing Environment Explained
  Stefan Holek, Plone Solutions

  If you want to write automated tests for Plone and your Plone-based 
products, this tutorial is for you. You will learn how to run your 
tests, how and why the default fixture works, and how to write your own 
tests derived from the PloneTestCase class.

  The tutorial will cover advanced topics like testing security, 
accessing the file system, rigging the REQUEST, etc. Finally, we will 
show how to create your own test frameworks based on PTC.
"""

--Paul



More information about the z3-five mailing list