On 2 Apr 2004, at 20:59, Mark Stosberg wrote: [snip]
One idea would seem to be have a "testing module" that provides the
setup and tear-down functionality. Then each individual test could
load the testing module, and setup and teardown for itself.
[snip]

That would be my approach. If you want some infrastructure to help you might want to take a look at <bias type="author"> Test::Class </bias>.

It provides a framework for creating setup/teardown routines that run around your tests allowing you to make test fixtures.

Also, if there were dependencies between modules Foo and Bar I'd also try to create mocks for Foo in the Bar tests, and for Bar in the Foo tests - so I can run each test suite independently.

Adrian



Reply via email to