3 ms·
No, changing the code doesn't invalidate the unit tests unless the API design contact changes.
by nradov 9y ago
No, changing the code doesn't invalidate the unit tests unless the API design contact changes.
- mannykannot 9y agoBy definition, unit tests test the implementation. A test at the API design contract level is an integration test. The only place where these are the same thing are pure (side-effect-free) functions that do not call other functions.