Google commented on different types of assertations in their testing framework (Google Testing Blog: EXPECT vs. ASSERT)
I have found assertations in my code very useful on many occasions; however, I do not see any need for the EXPECT function. If your code is broken then it is broken and there is no point in continuing and testing conditions which are not likely to be met.
It is like with C++ compiler errors. The most important error is the firtst error. The rest of the erorrs is usually rubish and useless.
Comments