Last week, on their way to the Pittsburgh Perl Workshop, Andy can Pete stopped by the RubberyCity PM meeting to talk about Testing in Perl.

Now, I'm no stranger to tests. Handel has a test count of over 11k, and I like to think that I'm doing pretty well for not knowing what I'm doing. If nothing else, tests save me from myself. :-)

One of the slides Andy had was something like "10 things to test other than code". While I knew you could test other things like servers, data, file systems, websites, etc, I've always concentrated on tests related to the dist they're in. It finally clicked for me today at $work.

Once again, I was asked to check a data vs. server thing. Part X has an image assigned, but is the image actually on the servers?

I've done it before, and I have no doubt I'll do it again. So, why not write a test for it as an investment in my future free time? Even if it's not an official test in an official test suite, in an official language, it still exists, and I can still run them on a whim.


In reply to Andy Lester Is My hero by jk2addict

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.