Re: DUnit TestCase wizard is useless

From: Bruce McGee (bmcgee_at_glooscap.com)
Date: 12/16/04


Date: 16 Dec 2004 06:10:09 -0800

Kirk Halgren wrote:

> Hi, Bruce,
>
> So you don't do any white box testing?
>
> BTW, that word "presumably" is exactly what I'm afraid of in my
> testing. So close to "assume" whose story I assume you know.
>
> Kirk

I do. I'll profile (performance, memory, code coverage) the unit tests
more than the application itself. We found a couple of really subtle
problems this way.

I'll also walk through code that appears to work properly externally
but have reason to believe is doing something really stupid
internally. Like recalculating the same result several dozen times
instead of only once. Hypothetically speaking, of course. :)

It isn't a silver bullet. Not everything is suited to unit testing,
and it won't replace (all) other forms of testing. But in the areas
that are well suited to unit testing, I'm seeing an awful lot of
benefit.

And my testing isn't perfect. I still get bugs reported for things I
hadn't thought to write tests for. The difference is that by adding a
test for the specific failure I can be reasonably sure that it won't be
introduced again and that I haven't broken any other working code in
the process of fixing it.

-- 
Regards,
Bruce McGee
Glooscap Software


Relevant Pages

  • Re: Memory overcommit
    ... When preparing KSM unmerge to handle OOM, I looked at how the precedent ... of the same size as physical memory, ... But this is then liable to hang the system if there's some reason ... But badness() reckons ...
    (Linux-Kernel)
  • Re: Memory overcommit
    ... When preparing KSM unmerge to handle OOM, I looked at how the precedent ... of the same size as physical memory, ... by the poor decisions the OOM killer made. ... But this is then liable to hang the system if there's some reason ...
    (Linux-Kernel)
  • Re: A Rash of STOP errors.. what does it all mean? (D1,3D,C2,FE,50,7F, death)
    ... up to pull up the diagnostic boot ... addition of 1GB of memory and an HP webcam. ... poss Reason: faulty driver/buggy s/w ... Hardware failures are the most common cause (many dozen KB ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Im building a new gaming PC, I was wondering if I could get some hints....
    ... The same memory modules will do. ... The reason I used the 4gb 2gb kit, is so that i wont waste money when ... because my motherboard only supports that kind... ... the 5 case fans, not fully needing to be annoying me all the time... ...
    (alt.comp.hardware.pc-homebuilt)
  • [PATCH -mm 1/5] Freezer: Document relationship with memory shrinking
    ... allocate memory after freeing it for the hibernation image, ... The majority of these are user space processes, but if any of the kernel threads ... The second reason is to prevent user space processes and some kernel threads ... +memory and we need to do that before ...
    (Linux-Kernel)

Loading