Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

CPAN Modules debugging - run test suites from command line

by Anonymous Monk
on Apr 30, 2014 at 12:21 UTC ( #1084487=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

When installing via cpan/cpanm I sometimes get test failures. From the command prompt (not cpan/m) how can I run the test suites with perl -d so I can debug?

Comment on CPAN Modules debugging - run test suites from command line
Re: CPAN Modules debugging - run test suites from command line
by tospo (Hermit) on Apr 30, 2014 at 13:34 UTC
    Download the tarball of the module and extract it and cd into the created directory. You can run any individual test with
    perl -Ilib -d t/SOME_TEST_FILE
Re: CPAN Modules debugging - run test suites from command line
by Bloodnok (Vicar) on Apr 30, 2014 at 15:17 UTC
    cd inst_dir perl Makefile.PL make test
    usually does the trick for me ... assuming that it [the module] has been created by h2xs.
    A user level that continues to overstate my experience :-))
Re: CPAN Modules debugging - run test suites from command line
by salva (Monsignor) on Apr 30, 2014 at 15:41 UTC
    Nowadays it is common for CPAN modules to have its version control repository hosted on some public service as GitHub.

    If you plan to fix the bug and send a patch to the author, it would be far easier if you use that repository from the beginning.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1084487]
Approved by LanX
Front-paged by LanX
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (18)
As of 2014-07-31 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (249 votes), past polls