Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Using Test-Point Callbacks for Automated Diagnostics in Testing

by ait (Hermit)
on Jan 14, 2011 at 12:27 UTC ( [id://882331]=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package test_class;
    
    ...
    
    1;
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    
    done_testing();
    
  3. or download this
    aimass@yclt2:~/languages/perl/MooseTest$ prove -v test_class.t
    test_class.t .. 
    ...
    All tests successful.
    Files=1, Tests=5,  0 wallclock secs ( 0.05 usr  0.00 sys +  0.37 cusr 
    + 0.02 csys =  0.44 CPU)
    Result: PASS
    
  4. or download this
    package cond_tp;
    
    ...
    __PACKAGE__->meta->make_immutable;
    1;
    
  5. or download this
    #!/usr/bin/perl                                   
    
    ...
    
    done_testing();
    
  6. or download this
    aimass@yclt2:~/languages/perl/MooseMeta$ export MYDEBUG_LEVEL=5
    aimass@yclt2:~/languages/perl/MooseMeta$ prove -v cond_tp.t
    ...
    Files=1, Tests=2,  0 wallclock secs ( 0.03 usr  0.01 sys +  0.39 cusr 
    + 0.02 csys =  0.45 CPU)
    Result: PASS
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-03-29 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found