
7 Jul
2009
7 Jul
'09
1:50 p.m.
Johan Nilsson
As for REQUIRE vs CHECK there's another point of view IMHO; either the SUT works or it does not. Why (in automated testing) bother checking whether something "half-works"? If you are into "manually" verifying stuff by looking at and interpreting large amounts of output on the screen IMHO you're not really doing automated unit/developer testing.
I am not gonna argue virtues of of using single or multiple asserts in test cases. My only point is that you can't have it both ways. Either you have single assertion per test case policy, or you agree people to use CHECK to validate independent assertions within the same test case. REQUIRE still needs to be used in case of dependent assertions. Gennadiy