Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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.

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
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? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2020-05-31 14:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (173 votes). Check out past polls.

    Notices?