I've hacked quite a bit of code by now, whether my own or other people's. I've developed a few small projects from concept to working beta for in-house production uses. What I haven't done is develop installation scripts to automate the propogation of useful code onto other people's servers.

Discussion in another node led me to read some perldoc from modules in Test::. What I could use at this point is some better idea of what a testing plan is, how it is developed? I have a friend who rails against being asked to write code without a testing plan in place. But I'm wondering how one would go about planning tests for code which hasn't been written yet. Surely a testing plan is something more than the number of tests you anticipate running during installation. Isn't it?

I'm guessing one would want to test the installation environment to make sure it will support the script and its dependencies. What else would one test?

-- Hugh

UPDATE

Well folks, that was great. I didn't write a lick of code yesterday but I did work my way through the entire book linked below on Extreme Perl. Facsinating read. Its like I'm just now starting to learn how to code, perhaps 26 years since that first assembler class in college. I think I'll spend some time with some more perldoc from Test::* and then try my hand at writing a test suite for my current project. At this rate, it may be a while before I get back to writing new code as a part of that project. Thanks to all the respondents below. That was very educational and its like starting all over now, in a way.


In reply to What is a testing plan? by hesco

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.