|Perl Monk, Perl Meditation|
Wanted, more simple tutorials on testingby punkish (Priest)
|on Jul 22, 2005 at 14:53 UTC||Need Help??|
punkish has asked for the
wisdom of the Perl Monks concerning the following question:
For various reasons (frustration and limitations with existing modules, self-edification) I decided to write a wiki formatting module. It is a deceptively easy thing to do -- html is a can o' creepy crawlies.
Concurrently, I have an increasing level of interest in testing. So, I read everything I could lay my hands on -- the PODs for Test::Simple and Test::More, the slideshow on Petdance, and the requisite chapters in various books.
I have come to the conclusion that I somehow need to utilize WWW::Mechanize, HTML::Lint and perhaps one of the afore-mentioned testing modules to test the robustness of my hereto lame-ish but satisfying wiki formatting module.
The problem is, I have no idea how to do that. Basically, I don't want to test for things I know. I want to test for all the possible arbitrary text that users could throw, and see if my module can format it to valid html in the manner that the users expected it to do.
Would any of the knowledgeable monks (all monks are knowledgeable, some more so) kindly point me to a tutorial that does something like what I want to do? Or, could a generous monk consider putting up a tute like so?
when small people start casting long shadows, it is time to go to bed