No such thing as a small change | |
PerlMonks |
Re: Silencing warnings when testingby chromatic (Archbishop) |
on Oct 28, 2002 at 04:24 UTC ( [id://208441]=note: print w/replies, xml ) | Need Help?? |
If you use Test::More, you can use the diag() function to print diagnostic or debugging information. Test::Harness will suppress it when running tests normally. You can run the test by hand or with the verbose flag and see them. If you are using Test::More, you can also use Test::Exception and Test::Warning to test for death and warnings. I've had good results with them.
In Section
Seekers of Perl Wisdom
|
|