Unit Test Question

djberg96 on 2004-07-26T03:16:53

Is there, among the plethora of testing libraries, something that will give me a fresh instance of an object for each test, or group of tests? I looked (maybe not hard enough), but didn't see anything.


fresh object for test sets

rjbs on 2004-07-26T04:02:05

Well, there's Test::Unit but that's a whole pile of different. You can just do what I do: put every group of tests in a bare block that starts with isa_ok(my $object = new Object);

Re:fresh object for test sets

djberg96 on 2004-07-26T04:30:40

Oh, there *is* Test::Unit for Perl - that's the approach I like. Thanks!