Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Strategy for conditional logging in tests

by andreas1234567 (Vicar)
on Apr 01, 2008 at 11:52 UTC ( #677740=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # foo.pl
    use strict;
    ...
    
    1;
    __END__
    
  2. or download this
    # foo.t
    use strict;
    ...
    # Note: I want a warning here:
    cmp_ok(add(1000,1000), q{==}, 2000, q{Expect 1000+1000=2000});
    __END__
    
  3. or download this
    $ prove --version
    TAP::Harness v3.10 and Perl v5.10.0
    ...
    All tests successful.
    Files=1, Tests=8,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.08 cusr 
    + 0.00 csys =  0.10 CPU)
    Result: PASS
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2018-09-19 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (163 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!