Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="http://www.makinggoodsoftware.com/2009/11/21/tdd-is-not-about-testing/" rel="nofollow">TDD is not about testing</a>. TDD <em>uses</em> tests to drive the design of your code. TDD <em>produces</em> tests as a happy side-effect of designing your code by writing the tests first, but it's not about testing: it isn't a testing methodology and the purpose is not to produce tests.</p> <blockquote> <p>Is test driven development a form of unit testing?</p> </blockquote> <p>No. It is a <em>design</em> methodology.</p> <blockquote> <p>From what I understand in TDD, you write your test first (which fails), write your code and then run your test which should pass.</p> </blockquote> <p>You're missing a very important step. You write your test first, you write your code until your test passes - and then you <strong>refactor</strong>. The tests permit you to refactor <em>safely</em>, ensuring that the desired behavior continues to work while you adjust your design. The tests also guide you to <em>testable</em> code, promoting smaller methods, shorter parameter lists, and overall much simpler design than other methodologies lead you to.</p> <blockquote> <p>Apart from TDD, do you write any other kind of test?</p> </blockquote> <p>When I do, it's usually a sign that I've failed to do TDD properly (but it certainly happens). We have both unit tests and user acceptance tests; both can be written prior to code, but sometimes our user acceptance tests are written later in the development cycle. They shouldn't be, but sometimes they are.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload