Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Setting up a test db with MakeMaker

by danmcb (Monk)
on Feb 25, 2013 at 14:10 UTC ( [id://1020529]=note: print w/replies, xml ) Need Help??

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'} );
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1020529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2025-04-28 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.