[Zope-dev] Zope Tests: 8 OK

2009-08-26 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Tue Aug 25 12:00:00 2009 UTC to Wed Aug 26 12:00:00 2009 UTC.
There were 8 messages: 8 from Zope Tests.


Tests passed OK
---

Subject: OK : Zope-2.10 Python-2.4.6 : Linux
From: Zope Tests
Date: Tue Aug 25 20:43:57 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-August/012384.html

Subject: OK : Zope-2.11 Python-2.4.6 : Linux
From: Zope Tests
Date: Tue Aug 25 20:45:58 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-August/012385.html

Subject: OK : Zope-2.12 Python-2.4.6 : Linux
From: Zope Tests
Date: Tue Aug 25 20:47:58 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-August/012386.html

Subject: OK : Zope-2.12 Python-2.6.2 : Linux
From: Zope Tests
Date: Tue Aug 25 20:49:58 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-August/012387.html

Subject: OK : Zope-2.12-alltests Python-2.4.6 : Linux
From: Zope Tests
Date: Tue Aug 25 20:51:58 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-August/012388.html

Subject: OK : Zope-2.12-alltests Python-2.6.2 : Linux
From: Zope Tests
Date: Tue Aug 25 20:53:58 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-August/012389.html

Subject: OK : Zope-trunk Python-2.6.2 : Linux
From: Zope Tests
Date: Tue Aug 25 20:55:58 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-August/012390.html

Subject: OK : Zope-trunk-alltests Python-2.6.2 : Linux
From: Zope Tests
Date: Tue Aug 25 20:57:58 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-August/012391.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope.sendmail and testing

2009-08-26 Thread Marius Gedminas
On Tue, Aug 25, 2009 at 05:12:53PM +0200, Jan-Wijbrand Kolman wrote:
 My point is that I have to make sure the fixtures/mocking is done even 
 in indirect consumers of zope.sendmail.
 
 What I mean is, if I run the tests of my application Foo, that uses an 
 application library MyLib where this MyLib library listens for events 
 that can trigger email being send, I need to *not forget* to use these 
 fixtures or mocks in the test setup of Foo. Even if the code of Foo does 
 not itself call zope.sendmail.

But MyLib cannot send email if your test fixture doesn't set up and
register a fully-functional email-sending utility!  Find the place where
your test fixtures do that and replace it with a stub no-email-sending
utility.

 I had hoped there would be a way for either zope.sendmail, or perhaps 
 for MyLib, to make sure that no mail is ever send when running tests of Foo.

Some kind of a global switch to unconditionally disable email delivery
in zope.sendmail would be useful sometimes, but I'm afraid of it
clouding the issue too much.

  This latter technique would probably work in a Layer too...
 
 Right, that might work - I would need to define a test layer in MyLib 
 and not forget to use this base layer for the tests for Foo. It would be 
 slightly better, but it is still something I or a team member could 
 forget. Generally that would not be so much of a problem, however I 
 would hate to unintentionally send out mail...
 
 Still I wonder about zope.testing.cleanup...

You cannot really depend on the order of cleanup handlers.  There
already is a cleanup handler that clears the whole component registry,
including any and all email utilities.  PlacelessSetup invokes all
cleanup handlers.

If your tests use PlacelessSetup (and unit tests generally do), and if
they can send mail, then it means you're registering an email utility
after the cleanup handlers have run, and therefore a cleanup handler
cannot possibly disable it.

Functional tests that want to preserve some kind of component
configuration between tests cannot use PlacelessSetup (or CleanUp),
since the aforementioned cleanup handler would clear the component
registry and break all your tests.

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3 consulting and development


signature.asc
Description: Digital signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] How to update the ZTK KGS (was Re: Working KGS tool! (was Re: IRC discussion about testing))

2009-08-26 Thread Jan-Jaap Driessen
2009/8/25 Martijn Faassen faas...@startifact.com:
 Hi there,

 Fabio Tranchitella wrote:
 [snip]
 Will we have an official buildbot instance somewhere under the zope.org
 domain? In this case, I'm willing to administer and maintain it, if nobody
 else steps in.

 I'd be happy to see this. We can do this with a DNS thing
 (buildout.zope.org) or we can actually run something on zope.org if
 someone explains what should be done to Jens. (the minimal info of: this
 script needs to be run every n hours).

 Regards,

 Martijn

Hi Martijn,

Fabio Tranchitella, Sebastien Douche and I are combining our efforts
for a ztk-kgs buildbot.

I set up a buildbot and 12 slaves for testing the kgs
(svn://svn.zope.org/repos/main/zopetoolkit/branches/jim-kgs/kgs). The
setup is still on my local machine, so I share the preliminary results
through pastebin.com:

python 2.4 on winxp : http://pastebin.com/m28ef94cc
- zope.testing
- zope.dottedname

python 2.5 on winxp : http://pastebin.com/f48e61f38
- zope.testing
- zope.app.twisted (may be related to running the tests inside a
buildbot environment)
- zope.dottedname

python 2.6 on winxp : http://pastebin.com/f6286c78e
- zope.testing
- zope.app.dav
- zope.dottedname

python 2.4 and 2.5 on ubuntu 32bit, ubuntu 64bit and osx: no failures.

python2.6 tests fail on ubuntu 32bit, ubuntu 64bit and osx:
http://pastebin.com/m4302c60d
- zope.testing


We hope to bring the buildbot online soon.

Kind regards,

-- 
Jan-Jaap Driessen

email: jdries...@thehealthagency.com
tel: +31 10 4445511
web: www.thehealthagency.com
kvk: 24340866
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] How to update the ZTK KGS (was Re: Working KGS tool! (was Re: IRC discussion about testing))

2009-08-26 Thread Adam GROSZER
Hello,

That's great.

I think if this works we should include some more mission critical
packages, like zc.buildout.
(Last time I checked zc.buildout had very bad test results on win32)

Wednesday, August 26, 2009, 4:46:37 PM, you wrote:

JJD 2009/8/25 Martijn Faassen faas...@startifact.com:
 Hi there,

 Fabio Tranchitella wrote:
 [snip]
 Will we have an official buildbot instance somewhere under the zope.org
 domain? In this case, I'm willing to administer and maintain it, if nobody
 else steps in.

 I'd be happy to see this. We can do this with a DNS thing
 (buildout.zope.org) or we can actually run something on zope.org if
 someone explains what should be done to Jens. (the minimal info of: this
 script needs to be run every n hours).

 Regards,

 Martijn

JJD Hi Martijn,

JJD Fabio Tranchitella, Sebastien Douche and I are combining our efforts
JJD for a ztk-kgs buildbot.

JJD I set up a buildbot and 12 slaves for testing the kgs
JJD (svn://svn.zope.org/repos/main/zopetoolkit/branches/jim-kgs/kgs). The
JJD setup is still on my local machine, so I share the preliminary results
JJD through pastebin.com:

JJD python 2.4 on winxp : http://pastebin.com/m28ef94cc
JJD - zope.testing
JJD - zope.dottedname

JJD python 2.5 on winxp : http://pastebin.com/f48e61f38
JJD - zope.testing
JJD - zope.app.twisted (may be related to running the tests inside a
JJD buildbot environment)
JJD - zope.dottedname

JJD python 2.6 on winxp : http://pastebin.com/f6286c78e
JJD - zope.testing
JJD - zope.app.dav
JJD - zope.dottedname

JJD python 2.4 and 2.5 on ubuntu 32bit, ubuntu 64bit and osx: no failures.

JJD python2.6 tests fail on ubuntu 32bit, ubuntu 64bit and osx:
JJD http://pastebin.com/m4302c60d
JJD - zope.testing


JJD We hope to bring the buildbot online soon.

JJD Kind regards,



-- 
Best regards,
 Adam GROSZERmailto:agros...@gmail.com
--
Quote of the day:
Absence sharpens love, presence strengthens it. 
- Anonymous 

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )