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

Thou shalt never mock the database, for thou shalt anger the database when thou moketh it.

In all seriousness, I have found this to be a useful suggestion, because the purpose of a test is to make sure invariants don't break in real code. When you mock the database, you're excluding large amounts of real code from test.



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

Search: