Brian Duggan > Module-Build-Database-0.49 > Test::MBD

Download:
Module-Build-Database-0.49.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Module-Build-Database-0.55

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

syntax highlighting: