http://www.perlmonks.org?node_id=1017382


in reply to Writing Test Case for Database Connectivity

A common solution is to use an SQLite database for testing, which uses a local file for storing the database. That means it requires no setup for username, password or a database server.