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

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


Date: Sun, 29 Feb 2004 00:26:00 GMT

Keith Ray wrote:

> 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!
> > :)
> >
> > As a software tester with some experience in the area I never believed
in
> > tests designed to show things are working. Tests should be malicious to
be
> > effective.
>
> Interestingly enough, TestDrivenDevelopment has two expected results
> 1. the programmer-test is written AND FAILS because the code to pass
> the test isn't written yet.
> 2. the code is written and the PROGRAMMER TEST PASSES
>
> If you get an unexpected pass in step 1, then examine what went wrong.
>
> If you get an unexpected failure in step 2, then examine what went wrong.

Thank you. The above does not "test" the code in a QC sense.

It tests the >programmer<. If their mental model differs from the code's
true status, those two checks come at very efficient junctures to detect
this situation.

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


Relevant Pages

  • Re: TDD: Test-Driven Design or Test-Driven Development?
    ... > If you intent to get tests pass you'll succeed. ... > software with intention to make it fail you'll succeed again. ... "If you are curious, or code does something unexpected, or you receive a bug ... If they write a test that fails due to missing abilities, ...
    (comp.object)
  • Re: how do professional PHP developers handle defaults for function parameters?
    ... If something is going to fail, ... someone who calls a function with wrong arguments is a bad programmer. ... When you need a new feature, just extend the baseclass, and if your classes are properly decoupled, this change won't affect the rest of the program. ... Documentation should document behaviour, not syntax. ...
    (comp.lang.php)
  • Re: "placebo"?! "enjoyed"?! [was: Re: Danger: online! [was: Re: Question for Agent (and other news r
    ... Purl Gurl is one of those who for reasons best known to them ... fail to provide attributions for remarks that they quote. ... I've supplied the missing attributions in the following ... > his intent is to spread hatred, ...
    (alt.usage.english)
  • Re: AFL (Australian Football League)
    ... You fail to check whether this call succeeded - fopen returns a null ... pointer if it cannot open the file. ... if your goal is to become a good programmer. ... Google users: ...
    (comp.lang.c)
  • Re: Whats the deal with the "toupper" family?
    ... No matter what you think `const' means in this context, ... it's up to the programmer to pass the right value. ... and doesn't want to validate the string for such ... Under what circumstances will casting to unsigned char fail, ...
    (comp.lang.c)