I think I want Test::Most to also provide strict and warnings for people. I've mentioned this on blogs.perl.org and on Perl-QA. I've had three positive comments and no negative ones. In short, instead of this boilerplate at the top of all of your tests:

use strict; use warnings; use Test::Most tests => 34;

You just need this:

    use Test::Most tests => 34;

I hate boilerplate and this will ease it. The only thing which gives me pause is that this module has become rather popular. It has over 800 passes for the latest release and CPANTS shows more and more modules depending on it. In short, if I've missed something, I could break a lot of code.

Given that those who use Test::Most are guaranteed to have the warnings pragma available (Test::Exception uses it and Test::Most uses that), I think we're safe there. If people don't want strict and warnings, they would have to now be explicit about this intention rather than forget to use these pragmas:

use Test::Most tests => 4; no strict; no warnings;

I think this is a sane change, but I can see that it might be controversial. My major concern, though, is to understand if I'm likely to break a lot of code.


In reply to Should Test::Most import strict and warnings? by Ovid

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.