Hacker News new | past | comments | ask | show | jobs | submit login

No, changing the code doesn't invalidate the unit tests unless the API design contact changes.



By 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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: