Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

reuse Test::More methods

by InfiniteLoop (Hermit)
on Jul 02, 2012 at 15:24 UTC ( #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.


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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://979450]
Approved by Corion
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2023-11-29 12:12 GMT
Find Nodes?
    Voting Booth?

    No recent polls found