Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Most painless way to update the number of tests run?

by choroba (Cardinal)
on Feb 12, 2017 at 05:00 UTC ( [id://1181786]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Most painless way to update the number of tests run?
in thread Most painless way to update the number of tests run?

You can comment some test off when working on a feature, but the number of tests will tell you when you forget to uncomment them. Also, if you run a test in a loop (some theories say you should never do that), the number of tests checks the number of iterations.

Also, we use Test::Spec at work. If you place a test to a wrong part of the code (outside of an it/they ), it could never run. Having the number of tests specified means you know the test didn't run.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^4: Most painless way to update the number of tests run?
by BillKSmith (Monsignor) on Feb 12, 2017 at 15:11 UTC
    Testing for the correct number of tests run is an excellent idea. However, this number is not always known in advance. Perhaps some test is only run depending on the success of a previous test.
    Bill

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-24 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found