Already at my last work, me and some others were looking at doing things the XP way, we read Fowler's refactoring, and studied stuff on the web, trying to put some of that in practice. I've also read chromatic's excellent article on testing at perl.com, and now recently Ovid's meditation, The Joy of Test. I'm still not always a good boy with this testing, but I am gonna get there. Promise.

My questions came up when I was wondering if I should use the standard module Test or if I should use the more powerful Test::More. I'd really like to use the latter, but it isn't included in the standard distribution.

So, if I actually someday create something good enough to distribute, should my test.pl be using Test::More, potentially giving people errors during 'make test' and have them install this module, or should I try to go with the standard Test to avoid this?

Question number two is about the module CPAN, and if I actually make something that great it could be uploaded there - I know that it follows prerequisites somehow (via Makefile.PL?) during install (if you ask it to); is this done before the test script, so I could name Test::More as a must-have module and CPAN.pm will take care of this?

To sum it up: should I usually use standard modules, even if there is a better alternative readily available, and how do I make sure a user can install my stuff including modules it needs with as little trouble as possible?

Personally, I would simply install Test::More or whatever and try again if this happened to me, but I wonder what is customary, how you do it, and what you recommend. :) I'd rather a user be scared by my module than by the install *grin*

Thank you.


You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.

In reply to Use a standard module or a "better" one, and how to make installing it troublefree. by Dog and Pony

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.