I am working on a catalyst project, and want to cause some actions to be automatically executed on execution of "make test" or "prove". (This would be setting an ENV variable to cause the app to connect to a test database, initialising the db, and so on.
A dirty solution would be to simply put these actions in a script and call it at the top of every *.t file. (Actually maybe this is not so bas as it ensures that each test file starts with a clean test database, and gets rid of interaction between test files.) But is there a better way?