Re: TDD: Test-Driven Design or Test-Driven Development?
From: Vladimir (NspamOtrushkin_at_tut.by)
Date: 02/03/04
- Next message: Avner Ben: "Re: Class Diagrams as Requirements or Design?"
- Previous message: Avner Ben: "Re: Should 'public virtual' always become 'private virtual'? & using private inheritance"
- In reply to: Phlip: "Re: TDD: Test-Driven Design or Test-Driven Development?"
- Next in thread: Phlip: "Re: TDD: Test-Driven Design or Test-Driven Development?"
- Reply: Phlip: "Re: TDD: Test-Driven Design or Test-Driven Development?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 3 Feb 2004 17:36:03 +0200
"Phlip" <phlip_cpp@yahoo.com> wrote in message
news:S1NTb.3207$yE6.1086@newssvr31.news.prodigy.com...
> Vladimir wrote:
>
> > I will never get tired of repeating...
> >
> > If you intent to get tests pass you'll succeed. If you then approach
> > software with intention to make it fail you'll succeed again. Wow!
> Amazing!
> > :)
>
> "If you are curious, or code does something unexpected, or you receive a
bug
> report, always write a new test. Then use what you learned to improve
> design, and write more tests of this category. If you treat the situation
> 'this code does not yet have that ability' as a kind of bug, then the TDD
> cycle is nothing but a specialization of the principle "capture bugs with
> tests".
>
>
>
> "But this power creates new risks. If all your tests request bugs, if you
> leave huge matching gaps in testage and code, and if you never refactor
your
> code but leave it crufty, frequent testing will also aggressively support
> these activities, and provide a very high apparent velocity.
>
>
>
> "Teach your colleagues to write tests on your code, and learn to write
tests
> on theirs too. If they write a test that fails due to missing abilities,
not
> faults in deployed abilities, treat the failing test as a feature request,
> and get it prioritized."
>
>
>
> You are playing the familiar "declaim one practice in isolation from the
> others" game. The White Book also covers that.
Honestly I didn't get what you are trying to convey...
I was just guarding the principles being IMO key to all testing. I know this
for sure that scarce testing is no much better than no testing at all. All
you do is examine a bit there a bit here and end up with some test suit that
never give you an idea about software quality. In other words you leave
holes of unexamined conditions that user may get into afterwards.
Demonstrating tests are good at regression testing. But regression testing
is what usually comes *after* some-other-type-of-testing
(unit/integration/system) and being composed of tests derived from those
suites designed WITH INTENTION TO FIND DEFECT (not showing the code is
working).
This time I suppose I was clear enough.
---- Best Wishes, Vladimir
- Next message: Avner Ben: "Re: Class Diagrams as Requirements or Design?"
- Previous message: Avner Ben: "Re: Should 'public virtual' always become 'private virtual'? & using private inheritance"
- In reply to: Phlip: "Re: TDD: Test-Driven Design or Test-Driven Development?"
- Next in thread: Phlip: "Re: TDD: Test-Driven Design or Test-Driven Development?"
- Reply: Phlip: "Re: TDD: Test-Driven Design or Test-Driven Development?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|