We (I and Hiperlógica) started to develop a Product we called
ZUnit, intended for XP-style unit-testing Python-based
Products in a full Zope environment (with a real ZODB, REQUEST,

We first conceived it as a kind of Zope-based version of
unittestgui.py - you create a "TestRunner" object giving it the
package, module and name of a TestSuite object generator (see
the PyUnit documentation) and inside it you may click on some
widget to run the tests and produce a "TestResult" object which
you can inspect later. Does this sound like a good design?

Then I figured in the long run a Product isn't the best
sollution; instead, fiddling with App/Product* sounds more like
it, to allow developers to register tests just like they
register classes, ZClass superclasses, _misc and help. Of
course, just like the current registerHelp and others, it
wouldn't be mandatory and not using it wouldn't break anything.

Then, in the Product's page in the Control Panel, there would
be a tab "Test", where you'd be allowed to run the unit tests.

What do people think of this? What does DC think of this? Can I
go ahead and develop it in this direction?

(I will create a proposal in dev.zope.org, but I want to get
some feedback here first to flesh out the proposal a little

          Hack and Roll  ( http://www.hackandroll.org )
            News for, uh, whatever it is that we are.

http://zope.gf.com.br/lalo           mailto:[EMAIL PROTECTED]
         pgp key: http://zope.gf.com.br/lalo/pessoal/pgp

Brazil of Darkness (RPG)    ---     http://zope.gf.com.br/BroDar

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to