I've *finally* had enough of the application I've been stuck maintaining and its random, buggy behaviour. There are 2 long outstanding bugs that I just can't replicate ... no matter how hard I've tried using 'crafty' non-automated testing.

So, it's time to bite the bullet and start writing a test harness for the bloody thing. It's a large, strange, re-blessed custom-rolled shopping cart application. The checkout process is my starting point ... somewhere along the line important data gets lost, and orders can't complete.

i picked up a copy of Perl Medic recently to get me started on this task. And I'm looking at Test::More to get things rolling, but the points that I need to test the most are a few steps into checkout process ( credit card processing, address insertion into the database, etc. ).

so, that all said ... where are some good places to look re: building these tests from 'legacy' code ... not building new code, writing tests first a la XP ... but finding trouble spots in older code and building a working test harness around it?


In reply to starting to write automated tests by geektron

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.