My first impression about TDD

来源:互联网 发布:巨潮数据库 编辑:程序博客网 时间:2024/05/19 03:43

Today I spend one day time to study TDD, Task Driven Development. I think the basic idea of it is divide and conque. The special point of this method is use test to ensure you are focus on the right point.

Develop progress of TDD is like this:

  1. Write a todo list. In fact, This need other design method to decide which thing you need to do.
  2. For each list-item in the todo-list
    1. write a test
    2. write code
    3. refactor

But I think I don't understand it deeply. I will try to use TDD in my project first. After had some pratice experence, I will return back to read the relate artile.   

原创粉丝点击