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

As always it depends. There are projects where integration is the hard part and others where the business logic is impossible to get right without unit tests.

Unit tests also have the added benefit that they tell you exactly the reason they failed (because there can only be one) whereas integration tests can fail for multiple reasons.



Yeah, but usually an integration test tells you what line it failed on, which gets you fairly close to knowing the exact reason it failed.




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

Search: