Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found