Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Libraries benefit very heavily from unit tests, built applications or frameworks derive more benefit from regression tests.

For a small unit of code, or a library, the unit tests effectively prove that the code/library does what it says on the box.

For a continuously worked on application, regression tests holds the guarantee that the application continues to work correctly for whatever thousands or millions of use cases built up over its lifetime - even when the implementations, algorithms and libraries used change underneath.



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

Search: