hesco has asked for the wisdom of the Perl Monks concerning the following question:
I am doing some work on a subroutine of that cgi script and I figure this is as good a place as any for which to start writing a test suite. But how do I "use script.cgi;" and test script::method(), without first rewriting it to break that function off into a distinct module? This needs to be a quick task, not a major distraction.
Any ideas would be appreciated.
-- Hugh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I test a cgi script's subroutines?
by chromatic (Archbishop) on Oct 12, 2006 at 23:52 UTC | |
|
Re: How do I test a cgi script's subroutines?
by brian_d_foy (Abbot) on Oct 13, 2006 at 04:15 UTC | |
|
Re: How do I test a cgi script's subroutines?
by spatterson (Pilgrim) on Oct 16, 2006 at 09:47 UTC |