*** r0ver has left #zope | 00:05 | |
*** cbcunc has quit IRC | 00:15 | |
*** benji has quit IRC | 00:20 | |
*** __gotcha has quit IRC | 00:25 | |
*** Kabz|4D has quit IRC | 00:31 | |
*** Kabz|4D has joined #zope | 00:35 | |
*** Kabz|4D has quit IRC | 00:41 | |
*** jim_SFU has quit IRC | 00:43 | |
*** fred|sport is now known as fredvd | 00:47 | |
*** Hypergraphe has quit IRC | 01:01 | |
*** alecm has quit IRC | 01:03 | |
*** alecm has joined #zope | 01:03 | |
*** allisterb has quit IRC | 01:03 | |
*** regebro has quit IRC | 01:06 | |
*** kevinkalupson has joined #zope | 01:11 | |
*** drudi has quit IRC | 01:14 | |
*** allisterb has joined #zope | 01:18 | |
*** webmaven has quit IRC | 01:42 | |
*** kevinkalupson has quit IRC | 01:51 | |
*** drudi has joined #zope | 01:57 | |
*** ccomb has quit IRC | 02:13 | |
*** ccomb has joined #zope | 02:14 | |
*** tarek has quit IRC | 02:14 | |
*** TresEquis has quit IRC | 02:33 | |
*** daMaestro has quit IRC | 02:33 | |
*** evilbungle has joined #zope | 02:36 | |
*** daMaestro has joined #zope | 02:45 | |
*** MatthewWilkes has joined #zope | 02:56 | |
*** MrTango has quit IRC | 02:57 | |
*** runyaga_ has quit IRC | 03:00 | |
*** mgedmin has quit IRC | 03:08 | |
*** pthulin has quit IRC | 03:09 | |
*** drudi has quit IRC | 03:11 | |
*** sashav has quit IRC | 03:11 | |
*** opsec has quit IRC | 03:12 | |
*** davisagli has left #zope | 03:25 | |
*** kevinkalupson has joined #zope | 03:25 | |
*** opsec has joined #zope | 03:26 | |
*** kevinkalupson is now known as kevinkal | 03:27 | |
*** MrWu has joined #zope | 03:27 | |
*** kevinkal is now known as kevinkalupson | 03:28 | |
*** kevinkalupson is now known as kevinkal | 03:28 | |
*** MrWu has quit IRC | 03:40 | |
*** redir has quit IRC | 03:44 | |
*** aaronv has quit IRC | 03:54 | |
*** alvaro has quit IRC | 04:03 | |
*** tiwula has quit IRC | 04:14 | |
*** azazel has joined #zope | 04:15 | |
azazel | anyone knows how to set the value of an OrderedMultiselectWidget using testbrowser? is it possible? | 04:16 |
---|---|---|
*** TresEquis has joined #zope | 04:28 | |
*** benji has joined #zope | 04:31 | |
azazel | TresEquis: mabye you are there:) do you know how to set the value of an OrderedMultiselectWidget using testbrowser? is it possible? | 04:35 |
TresEquis | azazel: I don't remember what an OMSW is at the moment :) | 04:38 |
TresEquis | what form elements does it render to? | 04:39 |
TresEquis | this is the one in zope.app.form.browser.itemswidgets? | 04:40 |
azazel | TresEquis: it's a widget in zope/app/form/browser/itemswidgets.py, it renders a multi select using two multiselect, one for the available values and one for the selected | 04:40 |
*** dunny has joined #zope | 04:41 | |
azazel | TresEquis: but it seems to do all the work using js... i was wondering how people test forms containing it.. or maybe no one tests it? | 04:41 |
TresEquis | JS doesn't test well without a real browser | 04:42 |
TresEquis | Selenium might help | 04:43 |
azazel | eh, the weird thing is that it uses js even to do the initial load the two selects... | 04:45 |
azazel | s/load the two/load of the two/ | 04:45 |
azazel | it's simpler to change the widget:) | 04:46 |
TresEquis | the values it actually reads on submit are appended into the toDataContainer span: a bunch of <input type="hidden"/> fields | 04:46 |
azazel | yes | 04:46 |
azazel | there is chance to alter the dom using testbrowser? | 04:47 |
*** ders has joined #zope | 04:47 | |
azazel | TresEquis: what are you suggesting? | 04:48 |
azazel | mmm... i can do a post | 04:49 |
TresEquis | I dunno: maybe zope.testbrowser needs to add an API for creating such hidden fields to simulate what the JS would do | 04:49 |
benji | azazel: this might help you: http://pypi.python.org/pypi/zope.testbrowser#submitting-a-posts-body-directly | 04:51 |
azazel | benji: yes! very handy i found it too! Thanks | 04:52 |
* azazel wonders if testbrowser can be extended to to use one of the various js libs to "render" the pages like spidermonkey or safari's one | 04:53 | |
benji | it would take quite a bit of work | 04:54 |
azazel | really? maybe i understimate the complexity behind the scene... i never looked at the code of testbrowser | 04:56 |
azazel | also it depends if the js interp can share the dom with python | 04:57 |
azazel | i think pyv8 has it | 04:58 |
benji | right, it's not testbrowser that's complicated, it's the other part | 04:58 |
benji | another issue is that even if testbrowser emulated a browser perfectly, you'd still need a way to test other browsers | 04:59 |
azazel | benji: one step at a time:) being able to emulate _one_ real browser is better than nothing at all ;-) | 05:01 |
*** shenlong has quit IRC | 05:09 | |
azazel | probably i'm wrong about pyv8 :-| | 05:12 |
azazel | benji: but qt4.6 seems to give access to the dom via qwebelement & qwebframe that can be run in "blind" mode using qttest http://doc.trolltech.com/4.6/qwebelement.html | 05:21 |
*** sidnei has quit IRC | 05:25 | |
*** davisagli has joined #zope | 05:32 | |
*** runyaga has joined #zope | 05:35 | |
*** MatthewWilkes has quit IRC | 05:42 | |
*** huajie has joined #zope | 05:53 | |
*** daMaestro has quit IRC | 05:55 | |
*** davisagli has quit IRC | 05:58 | |
*** alecm has quit IRC | 06:02 | |
*** baijum has joined #zope | 06:24 | |
*** owll has joined #zope | 06:40 | |
*** owll has left #zope | 06:41 | |
*** benji has quit IRC | 06:44 | |
*** davisagli has joined #zope | 06:47 | |
*** ders has quit IRC | 06:48 | |
*** baijum has quit IRC | 06:50 | |
*** ders has joined #zope | 06:52 | |
*** davisagli has left #zope | 06:54 | |
*** daMaestro has joined #zope | 07:06 | |
*** ders has quit IRC | 07:07 | |
*** ders has joined #zope | 07:08 | |
*** ders has quit IRC | 07:12 | |
*** ders has joined #zope | 07:13 | |
*** ders has quit IRC | 07:16 | |
*** ders has joined #zope | 07:16 | |
*** runyaga is now known as run|away | 07:20 | |
*** ders has quit IRC | 07:32 | |
*** azazel has quit IRC | 07:36 | |
*** baijum has joined #zope | 07:40 | |
*** ders has joined #zope | 07:40 | |
*** baijum has quit IRC | 07:45 | |
*** ders_ has joined #zope | 07:47 | |
*** ders has quit IRC | 07:47 | |
*** ders_ is now known as ders | 07:47 | |
*** ders has quit IRC | 08:01 | |
*** daMaestro has quit IRC | 08:06 | |
*** ders has joined #zope | 08:10 | |
*** alecm has joined #zope | 08:15 | |
*** ders has quit IRC | 08:21 | |
*** digitalmortician has joined #zope | 08:21 | |
*** ders has joined #zope | 08:23 | |
*** baijum has joined #zope | 08:26 | |
*** sidnei has joined #zope | 08:33 | |
*** davisagli has joined #zope | 08:54 | |
*** JaRoel|4D has quit IRC | 08:58 | |
*** davisagli has quit IRC | 08:59 | |
*** ders has quit IRC | 09:01 | |
*** davisagli has joined #zope | 09:01 | |
*** run|away has quit IRC | 09:08 | |
*** kevinkal has quit IRC | 09:10 | |
*** davisagli has quit IRC | 09:26 | |
*** huajie has quit IRC | 09:29 | |
*** alecm has quit IRC | 09:45 | |
*** pingviin3 has quit IRC | 09:51 | |
*** __gotcha has joined #zope | 10:02 | |
*** prinzdezibel has joined #zope | 10:03 | |
*** pthulin has joined #zope | 10:08 | |
*** evilbungle has joined #zope | 10:16 | |
*** regebro has joined #zope | 10:21 | |
*** supton has quit IRC | 10:22 | |
*** planetzopebot has quit IRC | 10:33 | |
*** planetzopebot has joined #zope | 10:34 | |
*** ccomb has quit IRC | 10:37 | |
*** smita has quit IRC | 10:41 | |
*** evilbungle has quit IRC | 10:41 | |
*** tarek has joined #zope | 10:41 | |
*** hever has joined #zope | 10:41 | |
*** pthulin has quit IRC | 10:52 | |
*** pthulin has joined #zope | 10:52 | |
*** sashav has joined #zope | 10:53 | |
*** JaRoel|4D has joined #zope | 11:00 | |
*** Kabz|4D has joined #zope | 11:05 | |
*** ccomb has joined #zope | 11:14 | |
*** MrWu has joined #zope | 11:21 | |
*** neo|4D has joined #zope | 11:22 | |
*** mr_jolly has joined #zope | 11:35 | |
*** regebro has quit IRC | 11:36 | |
*** agroszer has joined #zope | 11:40 | |
*** ramonski has joined #zope | 11:46 | |
*** TomBlockley has joined #zope | 11:56 | |
*** MrWu has quit IRC | 12:01 | |
*** hartym has joined #zope | 12:04 | |
*** fredvd has quit IRC | 12:04 | |
*** ccomb has quit IRC | 12:04 | |
*** ccomb1 has joined #zope | 12:04 | |
*** evilbungle has joined #zope | 12:08 | |
*** fredvd has joined #zope | 12:10 | |
*** digitalmortician has quit IRC | 12:10 | |
*** thetet has joined #zope | 12:25 | |
*** touff has joined #zope | 12:25 | |
*** agroszer has quit IRC | 12:27 | |
*** digitalmortician has joined #zope | 12:27 | |
*** teix has joined #zope | 12:37 | |
*** thetet has quit IRC | 12:45 | |
*** thetet has joined #zope | 12:51 | |
*** evilbungle has quit IRC | 12:53 | |
*** evilbungle has joined #zope | 12:53 | |
*** touff has quit IRC | 13:17 | |
*** JaRoel|4D has quit IRC | 13:19 | |
*** mgedmin has joined #zope | 13:21 | |
*** touff has joined #zope | 13:22 | |
*** agroszer has joined #zope | 13:24 | |
*** menesis has quit IRC | 14:00 | |
*** dayne has joined #zope | 14:25 | |
*** aaronv has joined #zope | 14:29 | |
*** dayne has quit IRC | 14:30 | |
*** sidnei has quit IRC | 14:36 | |
*** rodgort has quit IRC | 14:40 | |
*** sidnei has joined #zope | 14:55 | |
*** dunny has quit IRC | 14:57 | |
*** menesis has joined #zope | 14:59 | |
*** fredvd is now known as fredvd|lunch | 15:08 | |
*** dunny has joined #zope | 15:10 | |
*** __gotcha has quit IRC | 15:14 | |
*** benji has joined #zope | 15:25 | |
*** regebro has joined #zope | 15:25 | |
*** hever has quit IRC | 15:30 | |
*** touff has quit IRC | 15:43 | |
*** hever has joined #zope | 15:44 | |
*** huajie has joined #zope | 15:55 | |
*** sidnei has quit IRC | 16:02 | |
*** baijum has quit IRC | 16:02 | |
*** baijum has joined #zope | 16:03 | |
*** jim_SFU has joined #zope | 16:03 | |
*** sidnei has joined #zope | 16:07 | |
*** touff has joined #zope | 16:23 | |
*** JaRoel|4D has joined #zope | 16:27 | |
*** sidnei has quit IRC | 16:31 | |
*** smita has joined #zope | 16:43 | |
*** sashav has quit IRC | 16:51 | |
*** baijum has quit IRC | 16:57 | |
*** fredvd|lunch is now known as fredvd | 16:58 | |
*** sidnei has joined #zope | 17:02 | |
*** danfairs has joined #zope | 17:08 | |
*** baijum has joined #zope | 17:11 | |
*** agroszer has quit IRC | 17:15 | |
*** pthulin has quit IRC | 17:31 | |
*** thetet has quit IRC | 17:44 | |
*** sim_ has joined #zope | 17:50 | |
sim_ | hi all | 17:50 |
sim_ | I'm currently working on a project that is not a zope one, but uses some of its components, especially for testing (layers etc.). I was wondering, is there a point and a way to use other coverage tools than the one provided by zope.testing ? | 17:52 |
*** pyqwer has joined #zope | 17:55 | |
*** daMaestro has joined #zope | 17:57 | |
TresEquis | sim_: you might try installing nose and coverage eggs, and then running 'nosetests' | 18:06 |
TresEquis | I'm of the belief that any "reusable" package ought to be testable using 'setup.py test' (and therefore 'setup.py nosetests') | 18:06 |
TresEquis | but I'm in the minority, and don't have enough conviction to make it work for all the ZTK packages myself | 18:07 |
*** phimic has quit IRC | 18:07 | |
sim_ | TresEquis, 'cause i was wondering. As the code relies heavily on zcma layer etc. will other test framework know how to handle these/produce relevant report. | 18:08 |
sim_ | TresEquis, maybe I will give it a try for nosetests, what about py.test ? and other (because i'm mainly interested in coverage) coverage tools, like coverage.py ? Any opinion on those matters ? | 18:09 |
sim_ | TresEquis, Thanks for answering btw :) | 18:09 |
TresEquis | sim_: I think you are out of luck for tests requiring layers | 18:11 |
TresEquis | the other runners don't support that idea, at least not in the same way | 18:11 |
TresEquis | I proposed modifying the zope.testing.testrunner to emit XML files for results / coverage compatible with the JUnit / Cobertura ones | 18:12 |
TresEquis | so that Hudson could consume them | 18:12 |
TresEquis | but don't have any code for it yet | 18:12 |
sim_ | TresEquis, lol :] that part of what i was thinking of ! Hudson stuff etc. | 18:13 |
sim_ | TresEquis, but my other point is that the coverage tool used inside zope.testing is not accessible for option etc. (i have to patch zope.testing) | 18:13 |
*** alvaro has joined #zope | 18:14 | |
TresEquis | "accessible for optoin"? | 18:14 |
sim_ | yep | 18:14 |
TresEquis | what does that mean? | 18:15 |
sim_ | TresEquis, zope.testing is using trace.py inside to do the coverage, whose constructor can take options. But these can not be specified from the buildout part | 18:16 |
TresEquis | ah | 18:17 |
TresEquis | Can you upload your patch to launchpad: https://bugs.launchpad.net/zopetoolkit | 18:18 |
*** zagy has quit IRC | 18:18 | |
TresEquis | I might be able to get it landed / released | 18:18 |
*** baijum has quit IRC | 18:19 | |
TresEquis | actually, this would be better: https://launchpad.net/zope.testing | 18:19 |
TresEquis | or the equivalent bug tracker | 18:20 |
*** grahal has joined #zope | 18:23 | |
sim_ | TresEquis, I did not write the test for the moment, only considering it... Maybe i will eventually do something, i do not know at the moment. I will get back to you if you are interested | 18:24 |
*** hartym has quit IRC | 18:24 | |
sim_ | Do you think about special details on the subject if ever I bring a new patch ? | 18:24 |
sim_ | s/test/patch | 18:25 |
TresEquis | sim_: I don't have anything particular in mind | 18:26 |
sim_ | K | 18:27 |
TresEquis | if you know what needs to be done, then go for it ;) | 18:27 |
TresEquis | I did have in mind what to do about the XML output for Hudson, though | 18:27 |
sim_ | all rightt | 18:27 |
sim_ | TresEquis, oh, im interested as im just stepping in. I do not even find what's the specification for the xml output | 18:28 |
sim_ | s/do not/did not yet | 18:28 |
TresEquis | there isn't any very good specification | 18:29 |
TresEquis | basically, I'm going to stare at how the nose and coverage packages do it | 18:29 |
sim_ | hm ok | 18:30 |
mgedmin | sim_, fwiw bin/coverage bin/test .... works fine | 18:45 |
mgedmin | with ned batchelder's coverage.py and zope.testing.testrunner | 18:45 |
mgedmin | ned's coverage is faster than bin/test --coverage | 18:46 |
*** hever has quit IRC | 18:46 | |
*** fredvd is now known as fredvd|dinner | 18:46 | |
mgedmin | jml recently worked on subunit-compatible output for zope.testing.testrunner | 18:47 |
sim_ | mgedmin, can you redirect the bin/test output on bin/coverage or something like that ? | 18:47 |
mgedmin | subunit can then convert it to cobertura XML | 18:47 |
mgedmin | sim_ I'm not sure what you're asking | 18:47 |
mgedmin | I must run now | 18:47 |
sim_ | lol | 18:47 |
sim_ | all right thanks, i was thinkg of having a look to subunit, heard of it | 18:47 |
*** mgedmin has quit IRC | 18:47 | |
*** ders has joined #zope | 18:48 | |
*** shen-long has joined #zope | 18:52 | |
*** sidnei has quit IRC | 18:56 | |
*** hever has joined #zope | 18:58 | |
*** sidnei has joined #zope | 18:59 | |
*** huajie has quit IRC | 18:59 | |
*** alecm has joined #zope | 19:00 | |
*** ccomb1 has quit IRC | 19:10 | |
*** agroszer has joined #zope | 19:10 | |
*** ders has quit IRC | 19:12 | |
*** digitalmortician has quit IRC | 19:13 | |
*** opsec has quit IRC | 19:15 | |
*** ccomb has joined #zope | 19:16 | |
*** tiwula has joined #zope | 19:23 | |
*** opsec has joined #zope | 19:30 | |
*** danfairs has quit IRC | 19:35 | |
*** ramonski has left #zope | 19:36 | |
*** Arfrever has quit IRC | 19:43 | |
*** pyqwer has quit IRC | 19:49 | |
*** hever has quit IRC | 19:51 | |
*** hever has joined #zope | 19:51 | |
*** davisagli has joined #zope | 19:52 | |
*** regebro has quit IRC | 19:54 | |
*** jwhisnant has joined #zope | 19:55 | |
*** sidnei has quit IRC | 19:55 | |
*** neo|4D has quit IRC | 19:57 | |
*** hever has quit IRC | 19:57 | |
*** Kabz|4D has quit IRC | 20:01 | |
*** mcdonc has quit IRC | 20:22 | |
*** mcdonc has joined #zope | 20:25 | |
*** mcdonc has quit IRC | 20:25 | |
*** mcdonc has joined #zope | 20:26 | |
*** sidnei has joined #zope | 20:27 | |
*** ccomb has quit IRC | 20:28 | |
*** bigkevmcd has quit IRC | 20:31 | |
*** menesis has quit IRC | 20:39 | |
*** TomBlockley has quit IRC | 20:39 | |
*** evilbungle has quit IRC | 20:40 | |
*** RaFromBRC has joined #zope | 20:47 | |
*** aaronv has quit IRC | 20:59 | |
*** digitalmortician has joined #zope | 21:05 | |
*** evilbungle has joined #zope | 21:07 | |
*** Hypergraphe has joined #zope | 21:07 | |
*** evilbungle has quit IRC | 21:08 | |
*** RaFromBRC is now known as RaFromBRC|away | 21:19 | |
*** benji has quit IRC | 21:26 | |
*** jwhisnant_ has joined #zope | 21:27 | |
*** jwhisnant has quit IRC | 21:27 | |
*** jwhisnant_ has quit IRC | 21:28 | |
*** alecm has quit IRC | 21:29 | |
*** alecm has joined #zope | 21:30 | |
*** agroszer has quit IRC | 21:34 | |
*** RaFromBRC|away is now known as RaFromBRC | 21:42 | |
*** benji has joined #zope | 21:49 | |
*** zenwryly has quit IRC | 22:00 | |
*** menesis has joined #zope | 22:04 | |
*** teix has quit IRC | 22:05 | |
*** zagy has joined #zope | 22:05 | |
*** menesis has quit IRC | 22:09 | |
*** daMaestro has quit IRC | 22:11 | |
*** aaronv has joined #zope | 22:11 | |
*** menesis has joined #zope | 22:13 | |
*** JaRoel|4D is now known as JaRoel|AFK | 22:14 | |
*** zenwryly has joined #zope | 22:17 | |
*** Arfrever has joined #zope | 22:19 | |
*** daMaestro has joined #zope | 22:24 | |
*** alvaro is now known as Guest97502 | 22:27 | |
*** agroszer has joined #zope | 22:31 | |
*** agroszer has quit IRC | 22:40 | |
*** prinzdezibel has quit IRC | 22:41 | |
*** touff has quit IRC | 22:47 | |
*** rodgort has joined #zope | 22:47 | |
*** RaFromBRC has quit IRC | 22:50 | |
*** RaFromBRC has joined #zope | 22:50 | |
*** TresEquis has quit IRC | 22:55 | |
*** povbot has joined #zope | 23:06 | |
*** povbot has joined #zope | 23:12 | |
*** shastry has joined #zope | 23:18 | |
*** zagy has quit IRC | 23:19 | |
*** ders has joined #zope | 23:38 | |
*** ders has quit IRC | 23:41 | |
*** ders has joined #zope | 23:42 | |
*** ders has quit IRC | 23:50 | |
*** jim_SFU has quit IRC | 23:51 | |
*** fredvd|dinner is now known as fredvd | 23:55 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!