Re: interest in converting LWP / Mech hierarchy to roles?

2013-02-28 Thread Mark Stosberg
On 02/28/2013 03:26 PM, Mike Doherty wrote: > On 13-02-28 09:07 AM, Yanick Champoux wrote: >> On 13-02-27 11:04 AM, Mark Stosberg wrote: >>> Perhaps if some of these get converted to extend-by-roles instead of >>> extend-by-inheritance, some others will follow along, and we'll end up >>> with a mor

Re: interest in converting LWP / Mech hierarchy to roles?

2013-02-28 Thread Mike Doherty
On 13-02-28 09:07 AM, Yanick Champoux wrote: On 13-02-27 11:04 AM, Mark Stosberg wrote: Perhaps if some of these get converted to extend-by-roles instead of extend-by-inheritance, some others will follow along, and we'll end up with a more useful of collection of Perl-based browser extensions.

Re: Using NYTProf for code coverage?

2013-02-28 Thread Christian Walde
On Wed, 27 Feb 2013 14:49:44 +0100, Mark Stosberg wrote: I was tasked with working on code coverage for a large project, but had difficulty getting Devel::Cover to run. Can you maybe go into details as to why it won't run, or maybe condense it to a repeatable case? PJCJ is, with help from

Re: interest in converting LWP / Mech hierarchy to roles?

2013-02-28 Thread Yanick Champoux
On 13-02-27 11:04 AM, Mark Stosberg wrote: Perhaps if some of these get converted to extend-by-roles instead of extend-by-inheritance, some others will follow along, and we'll end up with a more useful of collection of Perl-based browser extensions. I don't have a lot to add to the conversatio

Re: interest in converting LWP / Mech hierarchy to roles?

2013-02-28 Thread Mark Stosberg
On 02/28/2013 11:29 AM, Andy Lester wrote: > > On Feb 28, 2013, at 10:26 AM, Mark Stosberg > wrote: > >> I'd like to have a Mechanize that has both the testing functions, and >> also JavaScript support, which the WWW::Scripter sub-class has. > > Seems to me even bet

Re: interest in converting LWP / Mech hierarchy to roles?

2013-02-28 Thread Andy Lester
On Feb 28, 2013, at 10:26 AM, Mark Stosberg wrote: > I'd like to have a Mechanize that has both the testing functions, and > also JavaScript support, which the WWW::Scripter sub-class has. Seems to me even better would be to fold WWW::Scripter's JS support into Mech itself. xoa -- Andy Lest

Re: interest in converting LWP / Mech hierarchy to roles?

2013-02-28 Thread Mark Stosberg
On 02/28/2013 10:45 AM, Andy Lester wrote: > > On Feb 27, 2013, at 10:04 AM, Mark Stosberg > wrote: > >> Then you have the WWW::Mechanize sub-classes. Here's a sampling: >> >>Test::WWW::Mechanize > > As far as Test::WWW::Mechanize goes, I don't see that the test

Re: interest in converting LWP / Mech hierarchy to roles?

2013-02-28 Thread Andy Lester
On Feb 27, 2013, at 10:04 AM, Mark Stosberg wrote: > Then you have the WWW::Mechanize sub-classes. Here's a sampling: > >Test::WWW::Mechanize As far as Test::WWW::Mechanize goes, I don't see that the testingness is really a role. It's really mostly a bunch of wrappers and some convenien

Re: Using NYTProf for code coverage?

2013-02-28 Thread Paul Johnson
On Thu, Feb 28, 2013 at 10:19:57AM -0500, Mark Stosberg wrote: > Thanks for all the replies. Sounds like the consensus is that I should > expect Devel::Cover to work, and get help if it doesn't. I'll give it > another shot. You can get help here or, if you've narrowed things down to a bug, please

Re: Using NYTProf for code coverage?

2013-02-28 Thread Mark Stosberg
On 02/28/2013 06:02 AM, Christian Walde wrote: > On Wed, 27 Feb 2013 14:49:44 +0100, Mark Stosberg > wrote: > >> I was tasked with working on code coverage for a large project, but had >> difficulty getting Devel::Cover to run. > > Can you maybe go into details as to why it won't run, or maybe c

Re: Best practices for TODO test management?

2013-02-28 Thread Mark Stosberg
On 02/27/2013 02:48 PM, Graham TerMarsch wrote: > On February 27, 2013 09:06:23 AM Mark Stosberg wrote: >> What are some suggestions to make sure that passing TODO tests get >> regular attention? >> > [.snip.] >> >> In case this context matters-- our tests are regularly through Jenkins, >>

Re: Best practices for TODO test management?

2013-02-28 Thread Mark Stosberg
On 02/27/2013 09:44 AM, Ovid wrote: > Hi Mark, > > I know this isn't exactly what you want, but a long time ago I added a > --directives switch to 'prove' to help with this. If you do this: > > prove -lr --directives t/ > > 'prove' will *not* run in verbose mode, except for any tests with >

interest in converting LWP / Mech hierarchy to roles?

2013-02-28 Thread Mark Stosberg
There's perhaps no better illustration of the values of roles vs inheritance in CPAN modules than the mess than that the LWP inheritance tree. There's so many modules that extend LWP or Mechanize through sub-classing, but can't easily be combined with getting into diamond inheritance: Here's a s