http://www.perlmonks.org?node_id=1020294


in reply to Re: Setting up a test db with MakeMaker
in thread Setting up a test db with MakeMaker

what about wrapping it into a module? You can even place it into the t/ directory and just add the following to each .t file: use TestSetup;

Does that work on 5.6?

Replies are listed 'Best First'.
Re^3: Setting up a test db with MakeMaker
by afoken (Chancellor) on Feb 23, 2013 at 18:20 UTC
    Does that work on 5.6?

    Why should it not work? Why don't you try it?

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      Why should it not work?

      Because I assumed that this will require BUILD_REQUIRES to be set and the default ExtUtils::MakeMaker version that shipped with 5.6 dint have it.

      Why don't you try it?

      I did and am yet to get it to work ( even on higher versions ) - Will reply once I find a way to get it to work or I give up, meanwhile - Did you?

      Update: I Managed it with a require 't/tests.pm'. I am not sure that thats what choroba meant though.