Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Silencing warnings when testing

by chromatic (Archbishop)
on Oct 28, 2002 at 04:24 UTC ( #208441=note: print w/ replies, xml ) Need Help??


in reply to Silencing warnings when testing

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.


Comment on Re: Silencing warnings when testing
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://208441]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2015-08-30 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (350 votes), past polls