what are your recommendations for setting up a database connection for perl module tests?
- What is the best way to let an installing person define the dsn and credentials for a database to connect to for testing?
- What is the best way to encapsulate the functionality of reading this information and connecting to that database for providing a dbh to test routines? I want to use this functionality in several test files.
- Is there a way to connect only once to a database for all tests in the t-directory of a distribution? A kind of test suite global.
Tips and code snippets appreciated.