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