最近のお気に入り書籍のシリーズ
最近、Pragamatic〜シリーズを買いあさっている。
薄い割りにいいことが書いてあることが多い。
単体テスト編
Pragmatic Unit Testing In Java With Junit (Pragmatic Programmers)
- 作者: Andrew Hunt,David Thomas
- 出版社/メーカー: Pragmatic Bookshelf
- 発売日: 2004/09/01
- メディア: ペーパーバック
- クリック: 2回
- この商品を含むブログ (5件) を見る
昨日読んでいたいのはJUnitによる単体テスト編。
よく知っていることばっかりとはいえ。
What to Test: The Right-BICEPの章は面白かった。
Right - Are the results right?
B - Are all the boundary conditions CORRECT?
I - Can you check inverse relationships?
C - Can you cross-check results using other means?
E - Can you force error conditions to happen?
P - Are performance characteristics within bounds?
I以外はいつも考えていることだが、Iは意外だった。
言われてみれば確かに。
Pの記述は今ひとつかもしれないけど重要なことだし。