dhosek has asked for the wisdom of the Perl Monks concerning the following question:

I've got a package that I've started using Module::Starter (and Module::Starter::PBP). When I try to run make test on it (no real code in place yet), the pod-coverage and pod tests fail as follows:
t/pod-coverage......Can't open perl script ""-I/Users/dhosek/dev/LA Lo +cal Food/LALF-Market/blib/lib"": No such file or directory t/pod-coverage...... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/pod...............Can't open perl script ""-I/Users/dhosek/dev/LA Lo +cal Food/LALF-Market/blib/lib"": No such file or directory t/pod............... Dubious, test returned 2 (wstat 512, 0x200) No subtests run
Any ideas what's going on here?

(As an aside, the templates generated by the default settings from Module::Starter::PBP don't work: They're missing my before the setting of $version)

  • Comment on Test::Pod/Test::Pod::Coverage failing strangely (from Module::Starter::PBP)
  • Download Code

Replies are listed 'Best First'.
Re: Test::Pod/Test::Pod::Coverage failing strangely (from Module::Starter::PBP)
by moritz (Cardinal) on Jan 26, 2008 at 20:36 UTC
    It seems that you have whitespaces in your working directory.

    Could you try the same thing in a directory that doesn't contain whitespaces?

    If it works then, you know what the problem is, and can write a good bug report ;-)

    Did you modify anything at all in the generated files?

      The manual page for module-starter recommends defining environment variable MODULE_STARTER_DIR.

      So, even though my $HOME is a pathname embedding spaces (typical for a MSWin32 PC), in My Computer, I define MODULE_STARTER_DIR to value c:\perldev\.module-starter. Then Module::starter::PBP works pretty well as planned.

      The other problem mentioned by dhosek, about our $VERSION is a known fault reported to CPAN in Feb 2007 at https://rt.cpan.org/Public/Bug/Display.html?id=25007.

      Best wishes.