Help for this page

Select Code to Download


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