Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Print summary of tests results when using Test::More ?

by haukex (Archbishop)
on Sep 10, 2017 at 21:25 UTC ( [id://1199051]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($passed,$failed) = (0,0);
    my @tests = Test::More->builder->details;
    ...
        if ($test->{ok}) {$passed++} else {$failed++};
    }
    diag "Of ".(0+@tests)." tests, $passed passed and $failed failed.";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-23 22:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found