*** philiKON has quit IRC | 00:06 | |
*** oferw has joined #zope3-dev | 00:28 | |
*** oferw has quit IRC | 01:20 | |
*** yota has quit IRC | 02:02 | |
*** C8N has left #zope3-dev | 02:34 | |
*** anguenot has quit IRC | 02:45 | |
*** stub has joined #zope3-dev | 04:30 | |
*** stub has quit IRC | 08:45 | |
*** BjornT_ is now known as BjornT | 09:44 | |
*** tarek has joined #zope3-dev | 10:09 | |
*** stub has joined #zope3-dev | 10:13 | |
*** d2m__ has joined #zope3-dev | 10:13 | |
*** d2m has quit IRC | 10:14 | |
*** d2m__ is now known as d2m | 10:15 | |
*** sashav has joined #zope3-dev | 10:21 | |
*** The|uni has joined #zope3-dev | 10:39 | |
*** philiKON has joined #zope3-dev | 10:41 | |
*** projekt01 has joined #zope3-dev | 11:24 | |
*** faassen has joined #zope3-dev | 11:31 | |
*** anguenot has joined #zope3-dev | 11:34 | |
*** timte has joined #zope3-dev | 11:48 | |
*** zagy has quit IRC | 11:49 | |
*** timte has quit IRC | 12:01 | |
*** zagy has joined #zope3-dev | 12:31 | |
*** mkerrin has joined #zope3-dev | 13:21 | |
*** mkerrin has left #zope3-dev | 13:21 | |
*** mkerrin has joined #zope3-dev | 13:22 | |
*** mgedmin has joined #zope3-dev | 13:56 | |
*** Aiste has joined #zope3-dev | 14:00 | |
*** zagy has quit IRC | 14:31 | |
*** alga has joined #zope3-dev | 15:17 | |
*** ignas has joined #zope3-dev | 15:29 | |
*** timte has joined #zope3-dev | 15:35 | |
*** stub has quit IRC | 15:37 | |
*** efge has joined #zope3-dev | 15:52 | |
*** timte has quit IRC | 16:06 | |
*** bradb has joined #zope3-dev | 16:26 | |
*** geek_x has joined #zope3-dev | 16:29 | |
*** geek_x has left #zope3-dev | 16:30 | |
*** SureshZ has joined #zope3-dev | 16:33 | |
*** bradb is now known as bradb-brb | 16:37 | |
*** timte has joined #zope3-dev | 16:51 | |
*** ignas_ has joined #zope3-dev | 17:01 | |
*** bradb-brb is now known as bradb | 17:03 | |
*** sashav has quit IRC | 17:04 | |
*** ignas has quit IRC | 17:13 | |
*** Aiste_ has joined #zope3-dev | 17:14 | |
*** mgedmin_ has joined #zope3-dev | 17:15 | |
*** Aiste has quit IRC | 17:18 | |
*** mgedmin has quit IRC | 17:18 | |
*** alga has quit IRC | 17:18 | |
*** mgedmin_ is now known as mgedmin | 17:26 | |
*** alga has joined #zope3-dev | 17:32 | |
*** zagy has joined #zope3-dev | 17:40 | |
*** zagy has quit IRC | 17:43 | |
*** zagy has joined #zope3-dev | 17:43 | |
*** mexiKON has joined #zope3-dev | 17:52 | |
*** philiKON has quit IRC | 18:01 | |
*** mkerrin has quit IRC | 18:37 | |
*** mkerrin has joined #zope3-dev | 18:44 | |
*** elbixio has joined #zope3-dev | 18:52 | |
*** deo has joined #zope3-dev | 19:29 | |
*** mexiKON is now known as philiKON | 19:37 | |
faassen | how 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 |
---|---|---|
faassen | I 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 |
alga | In functional doctests you can getRoot() | 20:03 |
faassen | alga: but how much is hooked up? | 20:05 |
faassen | alga: 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 |
faassen | alga: or does one need to hook all of this up by hand in the testing code? | 20:05 |
alga | I suppose the events will get sent | 20:07 |
alga | they are sent in the __setitems__ of containers | 20:07 |
alga | and all the setup is done for the page tests | 20:07 |
*** bradb is now known as bradb-bbl | 20:08 | |
faassen | alga: right.. | 20:09 |
faassen | alga: is that the best way? I mean, is there something whereI don't have to write a functional doctest first? | 20:09 |
alga | If you're willing to go into pains of doing all the needed setup in a unit test, you can do that | 20:11 |
alga | abusing a page tests seems like a shortcut to me | 20:11 |
faassen | yes. | 20:12 |
faassen | but I was hoping there was a proper shortcut. | 20:12 |
faassen | as opposed to an abusing the page test shortcut. | 20:12 |
alga | hm, the original Marius's ftest framework was more like what you need | 20:13 |
alga | configuration is done for you, and then you can write unittest.py-style tests | 20:13 |
faassen | could be there's a FunctionalTestSetup in there.. | 20:14 |
faassen | I mean, it looks like I might try FunctionalTestCase. | 20:14 |
faassen | that doesn't have all the browser stuff yet. | 20:15 |
faassen | but does parse the config files. | 20:15 |
faassen | I'll try that. | 20:15 |
alga | yep | 20:15 |
alga | that's what I meant by the original ftests | 20:15 |
faassen | looks for something ftesting.zcml..hm.. | 20:18 |
faassen | I guess my ftesting needs to run zopes somehow.. | 20:22 |
*** elbixio has quit IRC | 20:22 | |
faassen | I wonder how one does that. | 20:24 |
faassen | I mean, I can copy the whole zope version and adjust everything inside but that seems rather silly. | 20:24 |
*** Aiste_ is now known as Aiste | 20:27 | |
philiKON | faassen, why not write a FunctionalTestCase? | 20:34 |
faassen | I'm trying to write one. | 20:34 |
philiKON | :) | 20:34 |
faassen | it expects rather specific circumstances. | 20:34 |
faassen | it expects an ftesting.zcml to be there. | 20:34 |
faassen | which only exist in etc. | 20:34 |
faassen | so if I go to the 'etc' of my instance and do ../bin/test | 20:34 |
faassen | the tests actually run. | 20:34 |
faassen | which is rather silly, to have to be in 'etc' to run tests. | 20:35 |
philiKON | ick | 20:35 |
philiKON | that *is* silly | 20:35 |
faassen | it looks for ftesting.zcml in the current directory, I think. | 20:35 |
philiKON | hmmm. | 20:35 |
faassen | but it does appear to work..I think. | 20:35 |
philiKON | i don't recall it being that complicated when i wrote the book's code, though | 20:35 |
philiKON | (that was one of the few times i worked with an instance rather than a checkout) | 20:35 |
faassen | I'm sure everybody is very happy running the functional test cases from the checkout. | 20:36 |
faassen | oh, okay. | 20:36 |
philiKON | well, coudn't you override the method or whatever it is that loads ftesting? | 20:36 |
faassen | I guess. another thing, probably intentional, is that zope.conf isn't loaded. | 20:37 |
faassen | which makes it harder to work with external libraries, you have to manually put them on your PYTHONPATH. | 20:37 |
philiKON | i think it's quite intentional that it's not loaded | 20:37 |
philiKON | zope.conf is about HTTP server and ZODB conf | 20:37 |
philiKON | at least ZODB conf shouldn't be part of ftesting | 20:37 |
faassen | yes, but that makes life hard, if I want to put stuff on my PATH. | 20:37 |
philiKON | yes | 20:38 |
philiKON | maybe we should have a stripped down ftesting.conf | 20:38 |
faassen | guess so. | 20:38 |
philiKON | anyway, back to my studies | 20:39 |
philiKON | :) | 20:39 |
philiKON | have a good night | 20:39 |
*** philiKON has quit IRC | 20:39 | |
*** faassen has quit IRC | 20:48 | |
*** mkerrin has quit IRC | 21:07 | |
*** projekt01 has quit IRC | 21:26 | |
*** bradb-bbl is now known as bradb | 21:32 | |
*** timte has quit IRC | 21:33 | |
*** anguenot has quit IRC | 21:39 | |
*** yota has joined #zope3-dev | 21:51 | |
*** alga has quit IRC | 21:52 | |
*** mgedmin has quit IRC | 21:53 | |
*** jhauser has joined #zope3-dev | 21:56 | |
*** SureshZ has left #zope3-dev | 22:30 | |
*** ignas_ has quit IRC | 22:31 | |
*** projekt01 has joined #zope3-dev | 23:35 | |
*** deo has quit IRC | 23:51 | |
*** deo has joined #zope3-dev | 23:52 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!