利用Stub來打破關連性 (4)
Source: The art of unit testing with examples in .NET, Roy Osherove
http://www.amazon.com/Art-Unit-Testing-Examples-Net/dp/1933988274/ref=sr_1_1?ie=UTF8&s=books&qid=1267086529&sr=1-1
Chapter 3 Using stubs to break dependencies

kojenchieh 發表在 痞客邦 留言(1) 人氣()


利用Stub來打破關連性 (3)
Source: The art of unit testing with examples in .NET, Roy Osherove
http://www.amazon.com/Art-Unit-Testing-Examples-Net/dp/1933988274/ref=sr_1_1?ie=UTF8&s=books&qid=1267086529&sr=1-1
Chapter 3 Using stubs to break dependencies

kojenchieh 發表在 痞客邦 留言(0) 人氣()


利用Stub來打破關連性 (2)
Source: The art of unit testing with examples in .NET, Roy Osherove
http://www.amazon.com/Art-Unit-Testing-Examples-Net/dp/1933988274/ref=sr_1_1?ie=UTF8&s=books&qid=1267086529&sr=1-1
Chapter 3 Using stubs to break dependencies

kojenchieh 發表在 痞客邦 留言(0) 人氣()


利用Stub來打破關連性 (1)
Source: The art of unit testing with examples in .NET, Roy Osherove
http://www.amazon.com/Art-Unit-Testing-Examples-Net/dp/1933988274/ref=sr_1_1?ie=UTF8&s=books&qid=1267086529&sr=1-1
Chapter 3 Using stubs to break dependencies

kojenchieh 發表在 痞客邦 留言(0) 人氣()


Unit test and State-based testing
Source: The art of unit testing with examples in .NET, Roy Osherove
http://www.amazon.com/Art-Unit-Testing-Examples-Net/dp/1933988274/ref=sr_1_1?ie=UTF8&s=books&qid=1267086529&sr=1-1
Chapter 2 A first unit test

kojenchieh 發表在 痞客邦 留言(0) 人氣()


單元測試的基本觀念
Source: The art of unit testing with examples in .NET, Roy Osherove
http://www.amazon.com/Art-Unit-Testing-Examples-Net/dp/1933988274/ref=sr_1_1?ie=UTF8&s=books&qid=1267086529&sr=1-1
Chapter 1 The basics of unit testing

kojenchieh 發表在 痞客邦 留言(2) 人氣()


Mock和Stub的比較
Martin Fowler 寫過一篇文章, 叫"Mocks aren’t stubs" (http://martinfowler.com/articles/mocksArentStubs.html). 討論Mock和 stub的不同

kojenchieh 發表在 痞客邦 留言(1) 人氣()



TDD和Unit Test, Accpetance Test的比較
很多時候大家不清楚TDD和Unit test, accpetance test有時麼差別, 因此在撰寫測試時, 都把他們混在一起. 到時候再來說, TDD不work.
小弟整理了一下它們之間的差別, 有經驗的讀者歡迎補充一下

kojenchieh 發表在 痞客邦 留言(1) 人氣()


TDD  的簡介

http://www.agiledata.org/essays/tdd.html
TFD(Test first design) 的步驟
(1) 先快速加入一個測試, 基本上是足夠讓程式不能運作就可以
(2) 接下來執行你的測試, 已確定這個新增的測試會失敗
(3) 然後開始修改你的程式碼, 讓他可以通過你新增的測試
(4) 接著再重新執行你的測試. 如果失敗就在修改程式, 直到你通過測試為止.
(5) 如果成功之後, 再回步驟(1)重新再開始一個功能. (你可能會先需要refactor排除一些duplication or debt)
 
作者會覺得TDD應該是
TDD = Refactoring + TFD


kojenchieh 發表在 痞客邦 留言(0) 人氣()


TDD 相關的參考資料
Recommended TDD Tutorials
http://www.infoq.com/news/2009/05/recommended-tdd-tutorials

kojenchieh 發表在 痞客邦 留言(0) 人氣()


TDD應用狀況的調查 (下)
Test Driven Development (TDD) Survey: October 2008 
http://www.ambysoft.com/surveys/tdd2008.html

kojenchieh 發表在 痞客邦 留言(0) 人氣()


TDD應用狀況的調查 (上)
Test Driven Development (TDD) Survey: October 2008 
http://www.ambysoft.com/surveys/tdd2008.html
Posted by Scott W. Ambler
Published in Ambysoft

kojenchieh 發表在 痞客邦 留言(1) 人氣()

« 1 2 3 4
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。