Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: What to test in a new moduleby SankoR (Prior) |
on Jan 28, 2023 at 22:44 UTC ( [id://11149998]=note: print w/replies, xml ) | Need Help?? |
Include sample pages with the dist that your code should handle correctly. Include URIs that aren't supposed to be gathered by your code, tricky URIs, etc. When you fix bugs later, add tests that make sure you have no regressions.
Refactor your code so you can call and test the 'logic' without grabbing a remote page.
In Section
Seekers of Perl Wisdom
|
|