- or download this
package test_setup;
sub setup {
# setup your db or whatever here
}
1;
- or download this
require t::test_setup;
test_setup::setup();
- or download this
package test_setup;
...
}
1;
- or download this
if ( $ENV{USE_TEST_DB} ) {
__PACKAGE__->config( 'Plugin::ConfigLoader' => { file => 'myapp_test
+.yml'} );
}