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

An empty DB?

Some major bugs are caused by people not testing their code with enough data.



Not production DB, obviously :) Generate data before tests, collect list of created records during tests, remove collected items after all tests - if DB is not empty after it, you can see something unexpected has happened. If it's not possible to collect records (because of too opaque ORM), just flush DB.




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

Search: