by jamamp · 5y ago · 0 comments
Additionally, I think unit testing would benefit from an ORM as well. Instead of calling an actual database, you can easily have an in-memory database with an ORM with mocked data. Though, I suppose that is technically possibly with straight SQL queries as well, but I imagine it's easier with an ORM.
I've even seen one database layer for in memory and a completely different one for real database. That means that your unit tests are not really testing your production code