Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Setting up a test db with MakeMaker

by tmharish (Friar)
on Feb 23, 2013 at 10:08 UTC ( #1020294=note: print w/ replies, xml ) Need Help??


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?


Comment on Re^2: Setting up a test db with MakeMaker
Replies are listed 'Best First'.
Re^3: Setting up a test db with MakeMaker
by afoken (Prior) 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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2015-07-30 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls