Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

An alternative to 'no_plan'

by markjugg (Curate)
on Aug 10, 2006 at 00:57 UTC ( #566523=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Toggling test plans with vim
in thread Toggling test plans with vim

That seems like a good idea to me. Why wouldn't this be a reasonable alternative to keeping track of a test count:

use Test::More 'declare_done'; # tests here.... done_testing();
I've declared that my plan is to declare when I'm done testing. At the end of the test script, I do just that. Now, if the script exits early and done_testing() hasn't be called, we know there was a problem, and we know where it is, because we know the last test that was run.


Comment on An alternative to 'no_plan'
Download Code
Replies are listed 'Best First'.
Re: An alternative to 'no_plan'
by tphyahoo (Vicar) on Aug 10, 2006 at 09:59 UTC
    Yeah. That's certainly a lot simpler than counting.

    I wish someone would write that module.

Re: An alternative to 'no_plan'
by BrowserUk (Pope) on Aug 10, 2006 at 01:10 UTC

    Excellent idea. Simplicity incarnate.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2015-07-08 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls