The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::MBD - Helper for testing Module::Build::Database apps

SYNOPSIS

 use Test::MBD '-autostart';  # Pass in autostart to auto start

 Test::MBD->start; # Starts a test database if not already up
 Test::MBD->stop;  # Stop and clean up the test database

DESCRIPTION

For Module::Build::Database application tests, use Test::MBD in each test case that needs the database. Invokes ./Build dbtest --leave_running=1 to start up the test database if it isn't already running and leaves it running.

Run Test::MBD->stop in your very last test case to shut down and clean up after the test database with Build dbclean.

SEE ALSO

Module::Build::Database