Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

CPAN Modules debugging - run test suites from command line

by Anonymous Monk
on Apr 30, 2014 at 12:21 UTC ( [id://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

Replies are listed 'Best First'.
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 salva (Canon) 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.

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 :-))

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found