If I add Test::More to the Makefile.PL, this creates a dependency upon that module, that I would prefer it not to have. However, trying to write the test so that it if Test::More is installed it runs those tests, and runs the normal test.pl file if Test::More is not present, is giving me a headache.
If you decide to write 'regular' tests in the case Test::More isn't present, why bother writing Test::More tests at all? Test::More is there to make it easier to write test. Writing tests twice in such a way that it uses Test::More if Test::More is present, and do it the old fashion way if Test::More isn't serves no purpose.

Besides, the most used functionality of Test::More (subs like 'ok', 'is', 'isnt') is easily written, and can be included in the test file(s) so you have no dependencies.

Abigail


In reply to Re: Working with Test::More by Abigail-II
in thread Working with Test::More by TStanley

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.