Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

reuse Test::More methods

by InfiniteLoop (Hermit)
on Jul 02, 2012 at 15:24 UTC ( [id://979450] : perlquestion . print w/replies, xml ) Need Help??

InfiniteLoop has asked for the wisdom of the Perl Monks concerning the following question:

Greetings Monks,

I have a Test::More test method verifying the data returned by a url that returns json data. I also need to run the same set of tests against a different url. Is there any way to re-use the tests ? Thanks in advance.


That was a really stupid question; I just created a sub with all the common tests and invoked accordingly.

Sandeep

Replies are listed 'Best First'.
Re: reuse Test::More methods
by Khen1950fx (Canon) on Jul 02, 2012 at 16:27 UTC
    Actually, I think that you were thinking of Test::Reuse.