Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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]: yep :)
[Discipulus]: being her marto, can you explain what "Par for the course I'm afraid." means?
Discipulus here..
[marto]: "what is normal or expected in any given circumstances."
[marto]: better: "If a type of behaviour, event, or situation is par for the course, it is not good but it is normal or as you would expect"
[Discipulus]: thanks i was unable to decide where to split the sentece
[marto]: FWIW search.cpan rarely has issues, see http://noc.perl. org for a route to report problems
[oakbox]: thanks, marto.
[marto]: there was a period where search.cpan had some frequent outages for (IIRC) a couple of weeks. I've not had any problems since, until today.
[marto]: this was about 16 months ago maybe. the noc team are, in my experience, very responsive to reports of issues, so please raise the issue after checking known problems/outages

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-07-26 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (388 votes). Check out past polls.