原文链接:http://techblog.tilllate.com/2008/06/01/unit-testing-makes-coding-more-fun/
Unit testing makes coding more fun
单元测试使编程更有趣
“unit testing is a test that validates that individual units of source code are working properly”, that’s what Wikipedia says about unit testing. That’s general knowledge.
“单元测试是对源代码每一个程序单元进行的测试,它检查程序模块是否正确地实现了规定的功能。”,这是维基百科(http://en.wikipedia.org/wiki/Unit_testing)上对单元测试的定义。大家也都普通这样认为的。
But what motivates me even more than the increased software quality is that it saves me development time. This sounds odd as you might believe that TDD means writing more code.
但对我而言,更刺激的是它不仅仅对提高代码质量有好处,而是节省了我的开发时间。如果你认为单元测试只是意味着编写更多的代码的话,那这样说也许会令你感到奇怪。
» 阅读全文

