Statements about testing, paraphrased from Yehuda Katz
- If a patch for a bug fix is longer than the code it replaces, a detailed explanation must be supplied.
- Patches for bug fixes should more or less delete as many lines as it adds. Failure to do so will require a detailed explanation.
- Mocks are only allowed for APIs that are well defined, and external to your code. And tests should run w/ mocks turned off and real world objects in their place. (i.e. Mocks should accurately represent real world objects)
- Mocks are not to be used for API regression testing. Tests must use real world objects.