Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Test script requirements

by Sixtease (Friar)
on Mar 07, 2008 at 10:33 UTC ( #672730=note: print w/ replies, xml ) Need Help??


in reply to Re: Test script requirements
in thread Test script requirements

In my particular case, the module in question is List::MoreUtils, which, I gather, is a core module. I didn't care about it because I thought it's always present. But I'm getting mails from CPAN testers that the tests failed on the absence of List::MoreUtils. I assumed that the testers provide only those modules which are declared as required. If I condition the tests on them, then they will be skipped and the tests will not be run by the testers, which would deteriorate the benefit of the testers' work.

Maybe I'm assuming wrongly and the tester's test failed because they really didn't have List::MoreUtils?

use strict; use warnings; print "Just Another Perl Hacker\n";


Comment on Re^2: Test script requirements
Re^3: Test script requirements
by moritz (Cardinal) on Mar 07, 2008 at 10:40 UTC
    List::MoreUtils is not a core module.

    You might want to check out corelist, which is a command line interface to Module::CoreList. It tells you if a module is in core, and if so, from which perl version on.

    BTW it doesn't hurt to add core modules to your depency list, that way you're on the safe side, even if that module should be removed from core in future (unlikely, but not impossible).

      You should put core modules in your pre-requisite list because many modules that are now in core have not always been, and so people using older versions of perl will need to download them from the CPAN.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://672730]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-07-25 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls