Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 11192
Status: resolved
Priority: 0/
Queue: CPANPLUS

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

Bug Information
Severity: Wishlist
Broken in: 0.051
Fixed in: (no value)



Subject: Callback to edit test reports programmatically
It would be nice if there was a callback so that the test report buffer could be edited programmatically by scripts which use the backend.
From: "Jos I. Boumans" <kane [...] dwim.org>
Subject: Re: [cpan #11192] Callback to edit test reports programmatically
Date: Sat, 22 Jan 2005 23:41:47 +0100
To: bug-CPANPLUS [...] rt.cpan.org
RT-Send-Cc:
On Jan 22, 2005, at 10:25 PM, Guest via RT wrote: Show quoted text
> > This message about CPANPLUS was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=11192 > > > It would be nice if there was a callback so that the test report > buffer could be edited programmatically by scripts which use the > backend.
It'd actually be so nice, that it's already there... Not quite documented yet, but usable.. take a look at the source of CPANPLUS::Shell::Default::new() if you're curious how to do it now... -- Jos Boumans "Never ask a man what computer he uses. If it's a Mac, he'll tell you. If it's not, why embarrass him?" - Tom Clancy CPANPLUS http://cpanplus.sf.net
[kane@dwim.org - Sat Jan 22 17:45:59 2005]: Show quoted text
> It'd actually be so nice, that it's already there... > Not quite documented yet, but usable.. take a look at the source of > CPANPLUS::Shell::Default::new() if you're curious how to do it now...
No, that's different. It just asks if one wants to edit it, but there's no way to actually edit it from within Perl. Suppose I rant to run a Regexp on it to remove some information, or have my smoke testing script insert some additional information when certain conditions apply. I want to pass the test report through a subroutine that processes it. How do I do that?
[guest - Sat Jan 22 19:14:15 2005]: Show quoted text
> [kane@dwim.org - Sat Jan 22 17:45:59 2005]: >
> > It'd actually be so nice, that it's already there... > > Not quite documented yet, but usable.. take a look at the source of > > CPANPLUS::Shell::Default::new() if you're curious how to do it now...
> > No, that's different. It just asks if one wants to edit it, but there's > no way to actually edit it from within Perl. Suppose I rant to run a > Regexp on it to remove some information, or have my smoke testing script > insert some additional information when certain conditions apply. I > want to pass the test report through a subroutine that processes it. > How do I do that?
Thanks for suggesting.. this feature got added @ 11192 From the _register_callback pod: =item munge_test_report Is called when the test report message has been composed, giving the user a chance to programatically alter it. Should return the (munged) message to be sent.