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

> Rule #3: Only use mocks for truly external systems (e.g. mail service). The database should be part of the tests. Do not stub it.

Interfacing with external resources is literally the definition of what a unit test is NOT.



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

Search: