I'm trying to convert some existing home grown test scripts for an API to
Test::Unit style tests. The way things were originally set up it makes sense in the new Test::Unit::TestCase's to do most of the set up once only and then have that fixture apply without modification to each test.
It seems that making use of Test::Unit::Setup would allow me to do that; call a single fixture set_up() once, before running the first test, then run all the tests and have a single tear_down at the end.
However, the documentation that comes with Test::Unit::Setup is sparse and contains not a single example of use. I can't make heads or tails of it.
Might there be another perl monk out that there that can give me a pointer (possible a baby example even) of how to incorporate a Test::Unit::Setup into a Test::Unit::TestCase?
advthanksance,
DrWhy
update: Just a couple of typos fixed
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.