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

It's very simple: Unit tests test a specific "unit" (i.e. in an OO language, that's a class) and integration tests test the ingration of multiple units.

In OO languages, I personally prefer unit tests with all dependancies stubbed or mocked out to verify the interface of that specific unit or component.




Why can't a unit test work on the unit "package"? Or an integration test work on the integration of multiple methods?




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

Search: