TDD三大定律

  1. You must write a failing unit test before you write production code.
  2. You must stop writing that unit test as soon as it fails; and not compiling is failing.
  3. You must stop writing production code as soon as the currently failing test passes.

 

當有新的理解,會後續更新。。。code

相關文章
相關標籤/搜索