IRC log of #zope3-dev for Monday, 2005-07-04

*** philiKON has quit IRC00:06
*** oferw has joined #zope3-dev00:28
*** oferw has quit IRC01:20
*** yota has quit IRC02:02
*** C8N has left #zope3-dev02:34
*** anguenot has quit IRC02:45
*** stub has joined #zope3-dev04:30
*** stub has quit IRC08:45
*** BjornT_ is now known as BjornT09:44
*** tarek has joined #zope3-dev10:09
*** stub has joined #zope3-dev10:13
*** d2m__ has joined #zope3-dev10:13
*** d2m has quit IRC10:14
*** d2m__ is now known as d2m10:15
*** sashav has joined #zope3-dev10:21
*** The|uni has joined #zope3-dev10:39
*** philiKON has joined #zope3-dev10:41
*** projekt01 has joined #zope3-dev11:24
*** faassen has joined #zope3-dev11:31
*** anguenot has joined #zope3-dev11:34
*** timte has joined #zope3-dev11:48
*** zagy has quit IRC11:49
*** timte has quit IRC12:01
*** zagy has joined #zope3-dev12:31
*** mkerrin has joined #zope3-dev13:21
*** mkerrin has left #zope3-dev13:21
*** mkerrin has joined #zope3-dev13:22
*** mgedmin has joined #zope3-dev13:56
*** Aiste has joined #zope3-dev14:00
*** zagy has quit IRC14:31
*** alga has joined #zope3-dev15:17
*** ignas has joined #zope3-dev15:29
*** timte has joined #zope3-dev15:35
*** stub has quit IRC15:37
*** efge has joined #zope3-dev15:52
*** timte has quit IRC16:06
*** bradb has joined #zope3-dev16:26
*** geek_x has joined #zope3-dev16:29
*** geek_x has left #zope3-dev16:30
*** SureshZ has joined #zope3-dev16:33
*** bradb is now known as bradb-brb16:37
*** timte has joined #zope3-dev16:51
*** ignas_ has joined #zope3-dev17:01
*** bradb-brb is now known as bradb17:03
*** sashav has quit IRC17:04
*** ignas has quit IRC17:13
*** Aiste_ has joined #zope3-dev17:14
*** mgedmin_ has joined #zope3-dev17:15
*** Aiste has quit IRC17:18
*** mgedmin has quit IRC17:18
*** alga has quit IRC17:18
*** mgedmin_ is now known as mgedmin17:26
*** alga has joined #zope3-dev17:32
*** zagy has joined #zope3-dev17:40
*** zagy has quit IRC17:43
*** zagy has joined #zope3-dev17:43
*** mexiKON has joined #zope3-dev17:52
*** philiKON has quit IRC18:01
*** mkerrin has quit IRC18:37
*** mkerrin has joined #zope3-dev18:44
*** elbixio has joined #zope3-dev18:52
*** deo has joined #zope3-dev19:29
*** mexiKON is now known as philiKON19:37
faassenhow is it possible to do testing of integrated code easily? i.e. I want to test whether the catalog in my particular application is really finding something.20:00
faassenI know I can do functional doctests but I don't want to go all the level to TCP, I just want to call methods and see whether they deliver the right output.20:00
algaIn functional doctests you can getRoot()20:03
faassenalga: but how much is hooked up?20:05
faassenalga: I mean, when I add something to a folder, does an event get sent to the unique id service which sends an event to the catalog?20:05
faassenalga: or does one need to hook all of this up by hand in the testing code?20:05
algaI suppose the events will get sent20:07
algathey are sent in the __setitems__ of containers20:07
algaand all the setup is done for the page tests20:07
*** bradb is now known as bradb-bbl20:08
faassenalga: right..20:09
faassenalga: is that the best way? I mean, is there something whereI don't have to write a functional doctest first?20:09
algaIf you're willing to go into pains of doing all the needed setup in a unit test, you can do that20:11
algaabusing a page tests seems like a shortcut to me20:11
faassenyes.20:12
faassenbut I was hoping there was a proper shortcut.20:12
faassenas opposed to an abusing the page test shortcut.20:12
algahm, the original Marius's ftest framework was more like what you need20:13
algaconfiguration is done for you, and then you can write unittest.py-style tests20:13
faassencould be there's a FunctionalTestSetup in there..20:14
faassenI mean, it looks like I might try FunctionalTestCase.20:14
faassenthat doesn't have all the browser stuff yet.20:15
faassenbut does parse the config files.20:15
faassenI'll try that.20:15
algayep20:15
algathat's what I meant by the original ftests20:15
faassenlooks for something ftesting.zcml..hm..20:18
faassenI guess my ftesting needs to run zopes somehow..20:22
*** elbixio has quit IRC20:22
faassenI wonder how one does that.20:24
faassenI mean, I can copy the whole zope version and adjust everything inside but that seems rather silly.20:24
*** Aiste_ is now known as Aiste20:27
philiKONfaassen, why not write a FunctionalTestCase?20:34
faassenI'm trying to write one.20:34
philiKON:)20:34
faassenit expects rather specific circumstances.20:34
faassenit expects an ftesting.zcml to be there.20:34
faassenwhich only exist in etc.20:34
faassenso if I go to the 'etc' of my instance and do ../bin/test20:34
faassenthe tests actually run.20:34
faassenwhich is rather silly, to have to be in 'etc' to run tests.20:35
philiKONick20:35
philiKONthat *is* silly20:35
faassenit looks for ftesting.zcml in the current directory, I think.20:35
philiKONhmmm.20:35
faassenbut it does appear to work..I think.20:35
philiKONi don't recall it being that complicated when i wrote the book's code, though20:35
philiKON(that was one of the few times i worked with an instance rather than a checkout)20:35
faassenI'm sure everybody is very happy running the functional test cases from the checkout.20:36
faassenoh, okay.20:36
philiKONwell, coudn't you override the method or whatever it is that loads ftesting?20:36
faassenI guess. another thing, probably intentional, is that zope.conf isn't loaded.20:37
faassenwhich makes it harder to work with external libraries, you have to manually put them on your PYTHONPATH.20:37
philiKONi think it's quite intentional that it's not loaded20:37
philiKONzope.conf is about HTTP server and ZODB conf20:37
philiKONat least ZODB conf shouldn't be part of ftesting20:37
faassenyes, but that makes life hard, if I want to put stuff on my PATH.20:37
philiKONyes20:38
philiKONmaybe we should have a stripped down ftesting.conf20:38
faassenguess so.20:38
philiKONanyway, back to my studies20:39
philiKON:)20:39
philiKONhave a good night20:39
*** philiKON has quit IRC20:39
*** faassen has quit IRC20:48
*** mkerrin has quit IRC21:07
*** projekt01 has quit IRC21:26
*** bradb-bbl is now known as bradb21:32
*** timte has quit IRC21:33
*** anguenot has quit IRC21:39
*** yota has joined #zope3-dev21:51
*** alga has quit IRC21:52
*** mgedmin has quit IRC21:53
*** jhauser has joined #zope3-dev21:56
*** SureshZ has left #zope3-dev22:30
*** ignas_ has quit IRC22:31
*** projekt01 has joined #zope3-dev23:35
*** deo has quit IRC23:51
*** deo has joined #zope3-dev23:52

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!