How, and from which directory are you running your tests?

make test from within the distribution's root directory will Do The Right Thing. If you are running individual tests (eg: perl t/00-load.t), you need to first do a make install first. In the distribution root dir:

perl Makefile.PL make make test make install

Thereafter, if you don't make any changes to your Makefile.PL and want to run test files individually, simply make install after any change to your library (.pm file):

make install perl t/xx-frobnicate_tests.t

On a side note, each to their own on how they use module-starter, but I like to have the software configure as much as possible for me:

module-starter --module=My::Module \ --author="Steve Bertrand" \ --email=my@email.com \ --license=perl

At the very end of the help screen (just type "module-starter" without any arguments), there's an example if you forget (less the license option):

Example: module-starter --module=Foo::Bar,Foo::Bat \ --author="Andy Lester" --email=andy@petdance.com

In reply to Re: Running tests on modules generated by Module::Starter still in /lib directory by stevieb
in thread Running tests on modules generated by Module::Starter still in /lib directory by nysus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.