Skip Menu |

This queue is for tickets about the POE-Loop-EV CPAN distribution.

Report information
The Basics
Id: 55454
Status: resolved
Priority: 0/
Queue: POE-Loop-EV

People
Owner: Nobody in particular
Requestors: APOCAL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.06
Fixed in: 0.10



Subject: This module doesn't take advantage of POE::Test::Loops
Hello, While trying to track down some bugs in POE::Loop::Glib I updated the POE::Test::Loops code. I wanted to make sure the new test would still pass on EV, and I tried to run the tests in this module. To my surprise, the new test didn't show up and I tried digging around a bit. Seems like you inlined the generated tests directly into the distro. I assume you had your reasons in the past, but doing it this way means you don't benefit from new releases of PTL! What you would need to do is to use the "poe-gen-tests" program to generate tests during runtime... I hope this can be resolved soon so we get more test stuff running :) -- ~Apocalypse
On Wed Mar 10 21:56:21 2010, APOCAL wrote: Show quoted text
> Hello, > > While trying to track down some bugs in POE::Loop::Glib I updated the > POE::Test::Loops code. I wanted to make sure the new test would still > pass on EV, and I tried to run the tests in this module. > > To my surprise, the new test didn't show up and I tried digging around > a bit. Seems like you inlined the generated tests directly into the > distro. I assume you had your reasons in the past, but doing it this way > means you don't benefit from new releases of PTL! What you would need to > do is to use the "poe-gen-tests" program to generate tests during
runtime... Show quoted text
> > I hope this can be resolved soon so we get more test stuff running :)
I tried digging around a bit and realized the reason for this. You need to select a different EV backend and run the tests against them all. I would like to improve POE::Test::Loops so we can do that kind of "custom options"! Do you have a script that you used to generate those tests in the first place? That would be helpful as a reference point! Thanks again! -- ~Apocalypse
Oh boy, it sure is fun replying to myself eh :) As usual dngor++ had an excellent idea to work around PTL's limitation for EV: <Apocalypse> dngor: Maybe we should update PTL to accomodate this: https://rt.cpan.org/Ticket/Display.html?id=55454 <Apocalypse> But that would require a bit of redesign on how PTL generates the tests <@dngor> Make custom subclasses of EV that prepare differnt sub-loops? Target tests against them? <Apocalypse> Yeah that would be one way to do it, and probably the least invasive... <Apocalypse> PoLo-EV-Tester-Devpoll, PoLo-EV-Tester-Kqueue, etc -- ~Apocalypse
Added POE::Test::Loops testing in 0.10