Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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

Replies are listed 'Best First'.
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?