Like many of you folks, I've read PM for a while, and had that nagging 'I can do it better' thing hanging over my head for a while, and now I want to look into writing test cases.
I read some neat articles, and while I haven't tried it yet, I think I get the point about test cases being written and living in the 't' subdirectory.
Problem is, that those cases all seem to 'use' modules, get a new instance and work with it. A lot of my existing code isn't in Modules, it's plain ol' procedural code. Of course, I'm careful in error checking, etc, but how can I incorporate formal ok/'not ok' testing w/o having modules to call?
Oh, and a great big 'Thank You' to all PM folks, new and old!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||