Skip to content

Instantly share code, notes, and snippets.

@hatelove
Created March 24, 2012 16:25
Show Gist options
  • Save hatelove/2184839 to your computer and use it in GitHub Desktop.
Save hatelove/2184839 to your computer and use it in GitHub Desktop.
dev在經歷單元測試的各個階段
1.測試程式看起來好難,好花時間
2.測試程式真容易寫(3A)
3.一次要寫兩份好麻煩
4.Production code真難測
5.程式寫的真爛,思考怎麼寫出可測試的程式
6.看到測試程式紅燈的快感
7.需求異動,一次要改兩份
8.丟掉重寫一份測試程式
9.Ctrl+R, Ctrl+T 的頻率 = F5,Ctrl+R, A的頻率 = Ctrl+S
10.寫程式自然具可測試性
11.先寫測試程式,再寫想辦法通過測試的程式
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment