不健康的測試行為(Behavior Smells)
1. Assertion Roulette
在一個測試的函式中, 有很多assertion失敗, 你會搞不清楚到底是哪一個有問題, 或是真正的原因是甚麼.
kojenchieh 發表在 痞客邦 留言(0) 人氣(127)
測試自動化有關於專案中不好的味道(Project Smells)
在xUnit Test Pattern一書中, 提到測試自動化有三類型的smells: Code Smells, Behaviors Smells 和 Project Smells. 其中 Project Smells 是指從專案角度來看, 有問題的部分.
Project Smells 大致上有以下幾種
kojenchieh 發表在 痞客邦 留言(5) 人氣(92)
測試自動化的目的 (1)
在 xUnit Test Patterns 一書的第三章中, 提到 Test automation 的 goal. 作者認為應該有以下目的:
1. 應該能幫助我們改進品質
2. 應該能幫助我們了解受測程式
3. 應該能減低風險
4. 應該要能容易執行
5. 應該要容易撰寫和維護
6. 隨著系統的演進和發展, 應該只需要最低程度的維護花費
kojenchieh 發表在 痞客邦 留言(0) 人氣(560)
測試味道(Test Smell)
Matin Fowler 在 refactoring 一書中, 提到若是你要進行 refactoring 時, 你需要先知道哪裡需要 refactoring. 要如何找出這些地方呢? 這時候你需要知道壞程式的味道(smell)是甚麼, 因此他列出了一堆 smell 讓大家知道.
同樣地, 測試程式也有類似的行為, 也會有匯壞味道. 在 xUnit Test Patterns一書中, 他列出了三種壞味道:
kojenchieh 發表在 痞客邦 留言(0) 人氣(251)
乾淨的test program會幫助你更有效率
以前花很多時間在維護測試程式, 每次越維護越覺得測試自動化真的是浪費時間, 效果在哪裡也不知道.
kojenchieh 發表在 痞客邦 留言(0) 人氣(219)
測試程式要很簡單
在寫測試程式時, 常常遇到的問題, 就是維護的代價很高.
kojenchieh 發表在 痞客邦 留言(0) 人氣(710)
TDD無法推行的十大原因
Top Ten Reasons That TDD Sucks
http://www.blueskyonmars.com/2004/03/19/top-ten-reasons-that-tdd-sucks/
kojenchieh 發表在 痞客邦 留言(9) 人氣(149)

選擇性的Unit testing - 從cost和benefit的角度 (2)
Selective Unit Testing – Costs and Benefits
http://blog.stevensanderson.com/2009/11/04/selective-unit-testing-costs-and-benefits/kojenchieh 發表在 痞客邦 留言(0) 人氣(216)
選擇性的Unit testing - 從cost和benefit的角度 (1)
Selective Unit Testing – Costs and Benefits
http://blog.stevensanderson.com/2009/11/04/selective-unit-testing-costs-and-benefits/
kojenchieh 發表在 痞客邦 留言(0) 人氣(89)
stub和mock的比較
Mocking frameworks: stubs vs mocks
http://mindinthewater.blogspot.com/2010/02/mocking-frameworks-stubs-vs-mocks.html
kojenchieh 發表在 痞客邦 留言(11) 人氣(6,787)