hiya recently here at work ive been asked to start providing test scripts for my projects perl modules
ive found that its kinda hard to figure out which way to testcertain paradigms i was wondering what sort of help/tips/tricks anyone out there in modperl land could help me with here is the root of my problem ------------ i have one modules for my project called *::Global now this module contains any subs that can be reused by the rest of my project as well as some constants and routines for calling in support tables relted to categories etc i did a use case test script on my *::ViewMember and it reches out for *::Global's constant called *::Global::MEMBER_COLUMNS now i usually load *::Global into the Apache startup.pl so it is instanced under Apache but of course in testing under the test harness this will fail! =-=-=--= ive noticed a couple of things that might help one is Apache::FakeRequest as well there is the way Apache::AuthCookie tests: by starting up an httpd server inside of its test directory id rather not do that as it could get messy fast so if anyone could give me any tips at all ifd be most appreciative thanks!