Perl Monk, Perl Meditation | |
PerlMonks |
Reusing tests against multiple databasesby astroboy (Chaplain) |
on Apr 22, 2010 at 23:42 UTC ( [id://836366]=perlquestion: print w/replies, xml ) | Need Help?? |
astroboy has asked for the wisdom of the Perl Monks concerning the following question: Hi there
I have some tests that need to run against multiple database products (SQLite, MySQL and Oracle), and am trying to determine the best way to organise them so that the tests can be reused. How does everyone else do this? Here's an approach that I figured might work: I could use Test::Class and in my base class I'd create the schema/database in a startup method, and then I'd remove it in the shutdown method. My test classes would inherit from the base class. But what's the best approach to tell the startup and shutdown methods which vendor-related ddl scripts to run? Advice appreciated.
Back to
Seekers of Perl Wisdom
|
|