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

> It seems that unit testing database code would happen at the database layer:

Its not database code though. "Orders over 100$ should be marked as vip" is domain logic.

Database code like interactions with database, connection pools, primary/secondary switching ect yes they should be tested with a database.




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

Search: