码迷,mamicode.com
首页 > 其他好文 > 详细

TDD

时间:2018-10-25 16:25:03      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:fir   cto   new t   and   break   tdd   code   ati   actor   

1. write a test

2. run your test and see how it fails.

3. write code that will satify the test

4. run your test again and see your new test pass.

5. refactor your code

6. run your test again to confirm the test didn‘t break

TDD

标签:fir   cto   new t   and   break   tdd   code   ati   actor   

原文地址:https://www.cnblogs.com/yc5518/p/9850448.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!