--- Thomas Klausner <[EMAIL PROTECTED]> wrote:
> I guess with some more fiddling the END-block could be made smart
> enough 
> to only tear down stuff that was actually set up, but it worked for 
> me...

If you're using a DB, you can use transactions (AutoCommit => 0) and
rollback at the end.

If you're using files, you can use File::Temp to automatically unlink
the file at the end of the test run.

In short, most things that we do in testing can be set up to clean up
automatically at the end of a test run.

Cheers,
Ovid

--

Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

Reply via email to