XP is just a number | |
PerlMonks |
Re: Unit test of script fails unless Test::Warnings is used‽by 1nickt (Canon) |
on Oct 13, 2019 at 01:10 UTC ( [id://11107392]=note: print w/replies, xml ) | Need Help?? |
Hi, you should use Test::Exception:
Or better yet, always use Test::Most. (Your test gets a fail result under prove because you declare done_testing with no tests run so the harness sees no passes. Add ok 1; and you'll get success.) Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|