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

Unit tests are great, for testing unities.

What self-contained unities are there on your code? If you are doing low level system programming, I bet there are a lot of them. If you are doing high-level CRUD, I bet there is none, all of them you import from third parties.

Writing unit tests for non-self-contained code is crazy, and leads to all those problems people identify. In my experience, the problem is that the most vocal evangelist believers of unit test are all on places that work on the high level stuff.



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

Search: