danmcb has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Setting up a test db with MakeMaker
by choroba (Cardinal) on Feb 23, 2013 at 09:46 UTC | |
by danmcb (Monk) on Feb 25, 2013 at 14:10 UTC | |
by tmharish (Friar) on Feb 23, 2013 at 10:08 UTC | |
by afoken (Chancellor) on Feb 23, 2013 at 18:20 UTC | |
by tmharish (Friar) on Feb 24, 2013 at 17:47 UTC |
Back to
Seekers of Perl Wisdom