I'm not sure whether the language I'm using makes a difference or not, but for the record This is Python (2.7.3).
I recently tried to add functionality to a project which I had a decoction on the buttress. In particular, I have changed the incomplete http request library to requests from httplib2, so that I can easily add proxies to requests. Resulting function calls changed slightly (more variables were passed and in slightly different order), and as a result duplicate unit test calls failed. What is the best way to solve it? Is it OK to jump and rewrite the unit test so that they pass the new function call? Intuitively, the purpose of the unit test appears to be somewhat lessened
The purpose of a unit test Implementation of a requirement is to be verified. As part of any other piece of software, you should know what the unit tests does, how it checks the requirement (roughly its design is telling), and how it is implemented. Unless the requirement is changed, the design of the unit test should not be changed. However, it may be that changes to any other requirement affect its implementation (due to side effects, interface changes, etc.) Then according to your procedure, you can review the new implementation to make sure that the change does not affect the nature of the exam and that the basic requirement is still complete.
Comments
Post a Comment