# from Andy Lester
# on Saturday 03 March 2007 06:18 pm:

>Good Lord do I get frustrated at the handwringing over test  
>counting.  Look, it's simple.  You write your tests.  You run it  
>through prove.  You see how many tests it reports.  You add it at the
>   top of the file.  Voila!

I'm not wringing my hands, I just don't like step 3 of what could 
otherwise be a 2 step process.  Further, it equates to steps 1 and 4 
when adding more tests!  Is it bad that I want it to work in a way that 
encourages me to add tests rather than punishing me for it?

Do you comment out the tests => foo and uncomment the no_plan line 
whenever you edit tests, or do you use a ternary and the r0/r1 vim 
idiom?  Or do you just delete the 'tests' option and type no_plan 
longhand?  Seems like that would lead to at least some wristwringing.  
The ternary also leads to eyewringing in my case.

In fact, so much eyewringing that I've taken to this lately:

  use inc::testplan(0,
    + 3   # use
    + 199 # those others
  );
  ...
  done;

--Eric
-- 
To a database person, every nail looks like a thumb.
--Jamie Zawinski
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to