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

Re: prove v1.04 question

by philiprbrenan (Monk)
on Sep 07, 2012 at 15:25 UTC ( #992330=note: print w/replies, xml ) Need Help??


in reply to prove v1.04 question

You could try:

$Test->no_plan;

and then run prove: it will count the number of tests for you. Eventually when you have finished, I would urge you to remove the no_plan and substitute the actual number. A further possibility would be to use:

scalar $Test->summary;

at the end of each test script to count the number of tests in that script, possibly writing it to a file etc if there are a lot to be summed over. again the caveat about replacing no_plan with the actual number.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2016-09-25 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (470 votes). Check out past polls.