Re: DUnit TestCase wizard is useless
From: Bruce McGee (bmcgee_at_glooscap.com)
Date: 12/16/04
- Next message: Bruce McGee: "Re: Some QC fixes for D2005"
- Previous message: Deborah Pate (TeamB): "Re: PING: John, Anders, Danny etc..."
- In reply to: Kirk Halgren: "Re: DUnit TestCase wizard is useless"
- Next in thread: Kirk Halgren: "Re: DUnit TestCase wizard is useless"
- Reply: Kirk Halgren: "Re: DUnit TestCase wizard is useless"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Bruce McGee: "Re: Some QC fixes for D2005"
- Previous message: Deborah Pate (TeamB): "Re: PING: John, Anders, Danny etc..."
- In reply to: Kirk Halgren: "Re: DUnit TestCase wizard is useless"
- Next in thread: Kirk Halgren: "Re: DUnit TestCase wizard is useless"
- Reply: Kirk Halgren: "Re: DUnit TestCase wizard is useless"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|