Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to share an object between test cases using Test::Harness

by mellon85 (Monk)
on Feb 25, 2011 at 05:00 UTC ( #890124=note: print w/ replies, xml ) Need Help??


in reply to How to share an object between test cases using Test::Harness

You just import the package Tester in 2 different files, there is no sharing of any kind of data.

If you want a persistent object between test cases you need to save/load it in your test cases


Comment on Re: How to share an object between test cases using Test::Harness
Re^2: How to share an object between test cases using Test::Harness
by psantann (Novice) on Feb 25, 2011 at 17:24 UTC
    Hi, Thanks for you response! Yes, I think that might be the appropriated route for me. As I mentioned before, the trick here is to save the status of the network connection between each test file run. Does anyone have any module recommendations that would be appropriated to handle that?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2014-09-17 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (91 votes), past polls