|
From: Steve F. <st...@m3...> - 2004-01-07 23:11:37
|
Hello mockistas. We (Steve & Nat) have just spent a semi-productive session designing an API for "lenient mode" mock objects. In lenient mode a mock will return default values from unexpected invocations instead of throwing a test failure. But then we decided that it was a bad idea and deleted all the code. Lenient mode can mask errors and make errors fail slow instead of fast. In fact, Nick Robinson has just complained about this on the nmock list. There is some mechanism underneath to support default values for people who want to pop in their own default stub, but this is not yet exposed properly. What do people think about lenient mode? Cheers, Nat & Steve. |