Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CPAN-Reporter CPAN distribution.

Report information
The Basics
Id: 82261
Status: resolved
Priority: 0/
Queue: CPAN-Reporter

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

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



Subject: feature request: report optional prereqs also
Download (untitled) / with headers
text/plain 288b
It would be extremely helpful to list the optional and recommended prereqs (as listed in the metadata), as well as the required ones, with failed test reports. Optional deps may be used in Test::Requires/eval/try_load_class blocks and their status can be relevant to deciphering a report.
Subject: Re: [rt.cpan.org #82261] feature request: report optional prereqs also
Date: Wed, 26 Dec 2012 15:14:41 -0500
To: bug-CPAN-Reporter [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
Download (untitled) / with headers
text/plain 1.1k
On Wed, Dec 26, 2012 at 1:27 PM, Karen Etheridge via RT <bug-CPAN-Reporter@rt.cpan.org> wrote: Show quoted text
> It would be extremely helpful to list the optional and recommended > prereqs (as listed in the metadata), as well as the required ones, with > failed test reports. Optional deps may be used in > Test::Requires/eval/try_load_class blocks and their status can be > relevant to deciphering a report.
It's a great idea, but would take a hefty rewrite of _prereq_report in CPAN::Reporter. The best way would probably be to detect MYMETA.json and pull all prereqs from there with CPAN::Meta (if available). Otherwise, fall back to the current approach that just takes prereqs that CPAN.pm detected. One tricky bit will be to merge prerequisites if they are different in sections. (E.g. "requires Foo 1", "suggests Foo 1.2") The CPAN::Meta dependencies like CPAN::Meta::Requirements should make that easy. (All the CPAN::Reporter code predates such tools.) Then it would have to be tested. I don't have the tuits for it, but I'd be happy to provide pointers to a volunteer. :-) David -- David Golden <dagolden@cpan.org> Take back your inbox! → http://www.bunchmail.com/ Twitter/IRC: @xdg


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.