The RUP is talking about testing it in after the fact. We are talking
about *specifying* quality into the code by writing the specs (tests)
first. Remember that in TDD you are not allowed to write even a
single line of production code until you have a failing unit test.
You are not allowed to write more of a unit test than will fail. And
you are not allowed to write any more production code than is
necessary to make the tests pass. This leads to nearly 100% code
coverage, and nearly 100% specification of the code in tests.
Hic, duong chinh phuc XP van con xa dieu voi.
No comments:
Post a Comment