![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
strengthening a fragile testby hesco (Deacon) |
on Feb 12, 2011 at 03:34 UTC ( #887724=perlquestion: print w/replies, xml ) | Need Help?? |
hesco has asked for the wisdom of the Perl Monks concerning the following question:
I published another module the other day (WWW-Scrape-Mailman-RSS-0.12) and am now responding to the feedback I'm getting from the smoke testers. Fixing the first round of issues (attempts to create a file at a path which existed only in my local environment) was easy. But I can see that the code below is about to blow up in my face.
In fact, even if I could generate the $latest_month and $next_latest_month programmatically, this test would still fail from midnight the morning of the 1st of each month until the first post was archived to the test list each month. Can someone please advise how I might make this test less fragile, please? Mocking it seems not quite right, because part of what I need to test is my ability to give this object an $args{'base_url'} and get back an rss feed.
Thanks,
if( $lal && $lol ) { $life++; } if( $insurance->rationing() ) { $people->die(); }
Back to
Seekers of Perl Wisdom
|
|