Michael Clagett <mclag...@hotmail.com> wrote:
> I agree with Alexander, that this is a term that has come to represent a
> number of different things to different people.

I don't think that's a good answer. Yes, some people have used Test
Driven Development to refer to their own personal process that happens
to use tests; but TDD was originally developed as a component of
Extreme Programming, and as such there is a clear definition. TDD is
the subset of XP that can be practiced by a solo programmer.

Before I discuss this, there's an important question: are there any
test frameworks for J?

> Some folks write the tests first before they even write the code being
> tested, leveraging this idea of a test as a spec using that spec to guide
> the development of their code.

That's part of TDD -- without test-first, the development isn't driven
by the tests, and there's no point in using the name. The most
essential part of TDD is that you should NOT write a single line of
code that isn't required in order to make a _failing_ test pass. So in
order to add a new feature, you start by writing a test that you
expect to fail -- but you expect to be able to make pass easily. Run
the test and make sure it fails! Don't skip that step -- better
programmers than you have been fooled by their own code. Then write
just enough code to make it pass, and rerun your tests to confirm that
they do pass. Repeat as needed.

That's the essential skeleton of TDD. There's some judgement involved,
and guidance to help you decide where to start; there are also
automated test runners to help you run your test suite more frequently
(as yours tests get bigger it gets harder to run them with EVERY
little change). Those put meat on the bones.

-Wm

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to