【原創(chuàng)】單元測(cè)試和測(cè)試驅(qū)動(dòng)開發(fā)(TDD)雜談
摘要: 本文討論了實(shí)際工作中單元測(cè)試實(shí)踐和測(cè)試驅(qū)動(dòng)開發(fā)的感受和困惑,并試圖通過研究業(yè)界實(shí)踐來(lái)回答如下問題:為什么要進(jìn)行單元測(cè)試,對(duì)誰(shuí)進(jìn)行單元測(cè)試,怎么進(jìn)行單元測(cè)試。
閱讀全文
posted @
2010-07-13 17:34 Justin Chen 閱讀(2904) |
評(píng)論 (2) 編輯
[絕對(duì)原創(chuàng)] Use Unitils To Simplify Mock Test
摘要: Mock test is a very good way to test unit of codes. However, Mock test need lots effort on creating mock object, creating input and output parameter, and creating AugumentMatcher, and also comparing the expected result and actual results (assertions). Using Unitils can Simplify most of the manual work required by Mock Test.
閱讀全文
posted @
2009-03-30 22:30 Justin Chen 閱讀(2022) |
評(píng)論 (1) 編輯