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

Using SQLite's in-memory option is basically just a convenient way to get database mock objects. I don't personally think it's any worse (or better) than using mock objects. However, I think a reasonable argument for why they might be worse is that you've introduced a lot of fake code (as in, not used in the real application) that can cause false-negatives or false-positives in your tests. That's true of libraries for mocks too, but they introduce way less code.



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

Search: