Hope this isn't too time-consuming to implement...

If you're planning to maintain and develop your code base it'll be worth it no matter how long it takes.

You'll eventually find yourself modifying your application so it's easier to write tests for.. this is a good thing. It'll probably mean you're making your code more modular which will in turn make it easier to develop.

oh, and you'll know it was all worth it when you make a quick and simple change which "won't affect anything else" and your test suite finds and identifies a bug in 10 seconds..

I've spent a lotta time writing tests and improving my app to make it testable over the last 6 months, but I still don't think I've come close to the amount of time I've saved compared to manual testing and searching for bugs...

cheers,

J


In reply to Re: Re: Re: Tests for CGI apps by edoc
in thread Tests for CGI apps by jest

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.