"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
After testing a few serialization options including Data::Dumper, Storable and YAML. (Found an interesting article on these and others here:
http://www252.pair.com/comdog/mastering_perl/Chapters/14.persistence.html) I came to the conclusion that the complexity of storing my connection data is not worth the effort ( ran into segmentation faults and other oddities). In the end I decided to implement Elisheva's suggestion and run the test cases in a unified form as a single file. That way caching an object became a breeze. Also, I found a way to keep the files separated by making them Perl modules with a single exportable sub that run all tests in that module. A separated file "uses" all the modules and keeps the "memory" of previous tests, and I pass that file to TAP::Parser. Something like this: Thanks again to all that responded. In reply to Re^3: How to share an object between test cases using Test::Harness
by psantann
|
|