csjsias

博客园 首页 新随笔 联系 订阅 管理

 

《Pro ASP.NET MVC 3 Framework》一书中,当说到测试驱动开发时,是这么描述的:

 

If you don’t currently unit test your code, you might find the process awkward and disruptive—more
typing, more testing, more iterations. If you do perform unit tests, you already know what a difference it
makes: fewer bugs, better-designed software, and fewer surprises when you make a change.


Going from a nontester to a tester can be tough. It means adopting a new habit and sticking with it long
enough to get the benefits. Our first few attempts to embrace testing failed because of unexpected shifts in
due dates. It’s hard to convince yourself that doing something that feels like extra work is worthwhile when
time is tight.

 

这更多的是说给还没有使用过TDD的同志们,从java, Ruby of Rails 再到asp.net mvc 框架,都可以很好的支持TDD,也可见它的重要性了

posted on 2012-08-12 10:49  快乐121  阅读(157)  评论(0)    收藏  举报