最近のお気に入り書籍のシリーズ

最近、Pragamatic〜シリーズを買いあさっている。
薄い割りにいいことが書いてあることが多い。

単体テスト

Pragmatic Unit Testing In Java With Junit (Pragmatic Programmers)

Pragmatic Unit Testing In Java With Junit (Pragmatic Programmers)

昨日読んでいたいのは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の記述は今ひとつかもしれないけど重要なことだし。