DrWhy has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I use Test::Unit::Setup?
by mvc (Scribe) on Jul 13, 2004 at 12:15 UTC | |
by adrianh (Chancellor) on Jul 13, 2004 at 13:34 UTC | |
by mvc (Scribe) on Jul 16, 2004 at 17:56 UTC | |
by DrWhy (Chaplain) on Jul 13, 2004 at 15:57 UTC | |
by adrianh (Chancellor) on Jul 13, 2004 at 18:46 UTC | |
by DrWhy (Chaplain) on Jul 13, 2004 at 22:20 UTC |