【原創(chuàng)】單元測試和測試驅(qū)動開發(fā)(TDD)雜談
摘要: 本文討論了實(shí)際工作中單元測試實(shí)踐和測試驅(qū)動開發(fā)的感受和困惑,并試圖通過研究業(yè)界實(shí)踐來回答如下問題:為什么要進(jìn)行單元測試,對誰進(jìn)行單元測試,怎么進(jìn)行單元測試。
閱讀全文
posted @
2010-07-13 17:34 Justin Chen 閱讀(2899) |
評論 (2) 編輯
[絕對原創(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 閱讀(2017) |
評論 (1) 編輯