Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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

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 (Abbot) 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
Node Status?
node history
Node Type: perlquestion [id://1084487]
Approved by LanX
Front-paged by LanX
help
Chatterbox?
[marto]: when you work on the outside, for a client, you can make them aware of the stupids, but they don' t always listen :/
[Corion]: Yeah, you can lead them to water, but it's illegal to drown them...
[Discipulus]: Here my solution marto: create a win fake machine insied AD. do a micro fake partition foreach remote partition you wont to monit. put a web server that acept from data from remote systems and full fake partition as needed. fake partition are Mb. ;=)
[marto]: Discipulus yeah, the nuclear industry love fake machines sitting around on a controlled domain :P
[marto]: changing a typo on a website is often a great deal of paper work :P

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-01-24 10:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (203 votes). Check out past polls.