SUnit Resource Problems

Peter Keeler keelerp at cse.ogi.edu
Thu Jul 29 00:18:00 UTC 2004


I'm trying to set up an SUnit test that uses a TestResource. The
"resource" is a bunch of traits that need to be created one time at the
start of the test run and deleted at the end of the test run, and are
looked at but not modified by any of the tests (so they don't need to be
cleaned up between tests; it would take far too long).

The trouble I'm having is that SUnit appears to call setUp on the
resource, but never calls tearDown. Are there any SUnit hackers out there
that can tell me whether resources in SUnit are known to be broken (in
which case maybe I could help fix them) or whether I'm just doing things
the wrong way? I wasn't able to find any useful documentation on the right
way to do it, so I've been figuring it out just by reading the code.

Thanks,
  Peter





More information about the Squeak-dev mailing list