Test::MBD - Helper for testing Module::Build::Database apps
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
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'.
Module::Build::Database
To install Module::Build::Database, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Build::Database
CPAN shell
perl -MCPAN -e shell install Module::Build::Database
For more information on module installation, please visit the detailed CPAN module installation guide.