Re: TDD: Test-Driven Design or Test-Driven Development?

From: Phlip (phlip_cpp_at_yahoo.com)
Date: 02/03/04


Date: Tue, 03 Feb 2004 13:06:58 GMT

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.

--
  Phlip
    http://www.xpsd.org/cgi-bin/wiki?TestFirstUserInterfaces


Relevant Pages

  • coreutils-6.11 released
    ... 300 in gnulib. ... you can run this command ... -fR to copy a fifo or "special" file onto an existing file would fail ... [bug introduced in coreutils-5.90] ...
    (gnu.announce)
  • Re: gmpy and counting None
    ... Is this a bug in gmpy? ... numerical comparison in Python. ... Although one could argue whether the intent was appropriate. ...   that is made terrible by our own mad attempt to interpret it as though it had ...
    (comp.lang.python)
  • Re: embedded in strings
    ... This looks like a bug. ... out why the index is causing this to fail. ... | queries with vaues longer than the column being queried. ... |> | query analyzer if you want to see what I'm talking about. ...
    (microsoft.public.sqlserver.ce)
  • Re: how many bugs do you find and correct during TDD?
    ... > first you write a test you expect to fail. ... If it is not as expected, is that a bug, an imporperly written ... > request, or the request itself was the result of a misunderstanding of the ...
    (comp.object)
  • Re: Possible shared mapping bug in 2.4.23 (at least MIPS/Sparc)
    ... > Don't blame the kernel - the kernel is only doing what the user asked it ... Surely it's better to fail the mmapon other archs ... It's a bug either way ... ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)