Hi peter
Resources are normally set before any test run and teardown after all the test run if I remember correctly. In the tutorial I show how you can add sharedSetUp Test that do not execute setup for all the tests of a test suite but that executes it for each test suite. I really needed that and ressources were not the answer.
Stef
On 29 juil. 04, at 02:18, Peter Keeler wrote:
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