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

Unit testing code that touches the database is not useful, and in fact it indicates there is likely a design flaw. Code that acquires from or changes data in the DB should be self contained.

An integration test that doesn't use the same DB as production is unsatisfactory.



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

Search: