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

> You're better off testing at major functional boundaries, and if you do that, the length of functions matters less than the interface major modules provide to each other.

Otherwise known as integration testing, which is far more useful than unit testing because bugs, especially regression bugs, more often occur in the system, than in specific functions.

You can have as many unit tests as you want, but until you have integration test, you have zero coverage for the really complex part of your code.

Unit tests are great for algorithms though.



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

Search: